Bug 359965 - [formatter] Annotation assignment before/after assignment operator
Summary: [formatter] Annotation assignment before/after assignment operator
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.8   Edit
Hardware: PC Windows 7
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-05 07:38 EDT by Darryl Miles CLA
Modified: 2011-10-05 07:38 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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