This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 262427 - Ability to wrap generic parameters if line too long
Summary: Ability to wrap generic parameters if line too long
Status: NEW
Alias: None
Product: editor
Classification: Unclassified
Component: Formatting & Indentation (show other bugs)
Version: 8.2
Hardware: All All
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-06-14 13:28 UTC by _ gtzabari
Modified: 2016-06-14 13:28 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ gtzabari 2016-06-14 13:28:57 UTC
Given:

private static abstract class AbstractSortableMultimapBuilder<T, K, V, A extends Multimap<K, V>, R extends Multimap<K, V>>

Where the editor width is set to 80 characters, it should be possible to configure Netbeans to wrap generic parameters as follows:

private static abstract class AbstractSortableMultimapBuilder<T, K, V,
A extends Multimap<K, V>,
R extends Multimap<K, V>>

and possibly even try to horizontally-align the generic parameters.

Currently, Netbeans refuses to wrap generic parameters no matter how long the line gets and will un-wrap the line if a user manually moved the parameters onto a new line.