Bug 20253 - Extend Code Formatter to sort methods
Summary: Extend Code Formatter to sort methods
Status: RESOLVED DUPLICATE of bug 14597
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: 2.1 M5   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-06-13 14:15 EDT by Gunnar Wagenknecht CLA
Modified: 2003-03-17 12:16 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gunnar Wagenknecht CLA 2002-06-13 14:15:34 EDT
Hi!

Maybe you can add a sort feature for methods/variables of a class in code 
formatter? OK, is not possible for 2.0, but I'd like to have it in 2.1 :)

My Suggestion: code formatter should be sort class things (methods, vars) like 
in outline view. I like this sorting (static vars first then static methods, 
then vars and then methods, each group alphabeticaly).

Cu, Gunnar
Comment 1 Dirk Baeumer CLA 2002-06-14 05:12:31 EDT
Nice idea but as you already said this will not make it inot 2.0

Deferrring...
Comment 2 Dirk Baeumer CLA 2002-07-17 11:52:38 EDT
Reopen bug and moving to JDT Core since they own the formatter
Comment 3 Philipe Mulet CLA 2002-07-17 16:52:20 EDT
Unsure this belongs to formatting, as it may change the source in a non-
compatible way. Think of innerclasses which are numbered in declaration order 
X$1, X$2, ... 

Formatting is not changing the semantics of a program, simply the layout.

Would rather need to be a separate operation, which can easily be achieved in 
term of JavaModel APIs.
Comment 4 Philipe Mulet CLA 2002-07-25 08:20:04 EDT

*** This bug has been marked as a duplicate of 14597 ***