Bug 218705

Summary: [sort members] distinguish or permit member kind exclusion
Product: [Eclipse Project] JDT Reporter: Wes Isberg <wes>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: ASSIGNED --- QA Contact:
Severity: enhancement    
Priority: P3 CC: benno.baumgartner, martinae
Version: 3.4Keywords: helpwanted
Target Milestone: ---   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Wes Isberg CLA 2008-02-12 17:09:55 EST
Sort members treats all nested types the same, but interfaces and annotations are quite different from classes because they are essentially declarative.  I tend to put all my annotations in one spot, and can't sort methods, etc. without mixing annotations and classes.  So it would be nice to distinguish annotation, interface, and class kinds of Type in the sort order.

A workaround is for me to create an enclosing class for the annotations that should be combined.

Alternatively, you could permit the user to exclude kinds of members from the sort.  re: UI, in the Members Sort Order preference dialog, below the "up" and "down" buttons would be "add" and "remove".  The user could then remove "types" from member sorting. re: implementation, hints to where to investigate a patch appreciated.
Comment 1 Martin Aeschlimann CLA 2008-02-13 03:13:06 EST
I see what you mean.
However, we have no plans here. Help is wanted.  
Comment 2 Benno Baumgartner CLA 2008-02-13 03:55:16 EST
Oh, now we did encourage you too much;-) See patch at bug 218542 for a start, if you want to provide a patch. The preference page is called MembersOrderPreferencePage. I would not allow to exclude elements form the sorting though.