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 154528 - Source Formatter: Different wrapping options by binary operator
Summary: Source Formatter: Different wrapping options by binary operator
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Rastislav Komara
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-03 20:38 UTC by krissco
Modified: 2009-02-03 10:57 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 krissco 2008-12-03 20:38:02 UTC
I would like the source formatter to wrap different binary operators differently.

Allow the user to set up wrapping options for each operator:

String Concatenation: Always
Arithmetic Operators: Never
Comparison Operators: Never


This would allow formatting like:

String sql = "select field1, " +
	"field2, " +
	"field3 " +
	"from tableName " +
	"order by field1";

if (1 + 5 % 3 == 34)
{
	
}
Comment 1 Rastislav Komara 2009-02-03 10:57:34 UTC
Overtake.