Summary: | Would like to move fields together (and to the top) | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | John Wiegand <John_Wiegand> |
Component: | Core | Assignee: | Olivier Thomann <Olivier_Thomann> |
Status: | RESOLVED DUPLICATE | QA Contact: | |
Severity: | enhancement | ||
Priority: | P3 | CC: | akiezun, shanec |
Version: | 2.0 | ||
Target Milestone: | 2.1 M5 | ||
Hardware: | PC | ||
OS: | Windows 2000 | ||
Whiteboard: |
Description
John Wiegand
2002-04-11 12:10:29 EDT
John, would fixing bug 13013 help you here? you could drag the fields and drop them over the type icon, which would drop them there - at the top of the type definition jindent supports this sorting option. The formatter is pluggable and it would be possible to integrate jindent into Eclipse. No plans to add this to the built-in formatter. Reopening This is more a formatting issue than a refactoring issue. Moving to JDT Core for commenting. They are investigating in a new formatter infrastructure. Still, reordering source may cause binary compatibility issues (innerclasses numbered differently). Therefore I am reluctant to consider it as a formatting feature. However, I would want to have such a feature too, along with a way to sort members by name (fields, types then methods). I think this can be implemented in term of the JavaModel alone... like the fragmented source view. Just for clarification, I too think it should be some kind of pre-processing of the source. Not part of the formatter, since they are occasions where I only want to resort, not touch the formatting. Maybe this should be part of the formatter, simply with a lightweight mode. |