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

Summary: Source Formatter: Different wrapping options by binary operator
Product: java Reporter: krissco <krissco>
Component: SourceAssignee: Rastislav Komara <moonko>
Status: NEW ---    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: PC   
OS: Windows XP   
Issue Type: ENHANCEMENT Exception Reporter:

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.