Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 359965

Summary: [formatter] Annotation assignment before/after assignment operator
Product: [Eclipse Project] JDT Reporter: Darryl Miles <darryl>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3    
Version: 3.8   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Darryl Miles CLA 2011-10-05 07:38:47 EDT
Build Identifier: 

Currently the Preferences -> Java -> Code Style -> Formatter, then edit a profile and look at both:

Whitespace [tab] -> Declarations -> Annotations
Whitespace [tab] -> Expressions -> Assignments

There is currently no way to control:

@Annot(x = 23, y = -3)
@Annot(x=23, y=-3)

Independantly of:

int a = -4 + -9;
int a=-4 + -9;


So this feature request is requesting that 2 new tri-state options exist in "Whitespace [tab] -> Declarations -> Annotations" called:

before assignment operator  (yes, no, default)
after assignment operator  (yes, no, default)

Using the GUI tri-state widget: check box ticked, check box empty/unticked, check box blocked (square block where tick is) to indicate the states.

The "yes" and "no" override the state.  The "default" takes the setting from "Whitespace [tab] -> Expressions -> Assignments" which is currently the only option available.

Reproducible: Always