Bug 218705 - [sort members] distinguish or permit member kind exclusion
Summary: [sort members] distinguish or permit member kind exclusion
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.4   Edit
Hardware: PC Windows 2000
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2008-02-12 17:09 EST by Wes Isberg CLA
Modified: 2008-02-13 03:55 EST (History)
2 users (show)

See Also:


Attachments

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