Bug 563072 - [Outline] Sort object members and fields by class object type in alphabetical order
Summary: [Outline] Sort object members and fields by class object type in alphabetical...
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.15   Edit
Hardware: PC Linux
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-11 15:43 EDT by Taro Kyo CLA
Modified: 2020-05-11 15:43 EDT (History)
0 users

See Also:


Attachments
The current list of all filters available for the Outline pane. We only have 1 sort filter. (5.63 KB, image/png)
2020-05-11 15:43 EDT, Taro Kyo CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Taro Kyo CLA 2020-05-11 15:43:09 EDT
Created attachment 282785 [details]
The current list of all filters available for the Outline pane. We only have 1 sort filter.

Eclipse IDE for Enterprise Java Developers.

Version: 2020-03 (4.15.0) Stable Release
Build id: 20200313-1211

I believed this will also apply to Version 2020-06 (4.16.0) M1, but considering that is a release candidate, I'm not too worried about it.

Currently, in the Outline view, per attached image, we have the option to sort the field members in alphabetical order. This includes class members, and class methods.

It's great to be able to sort the fields alphabetically, but I wanted to request for more different sort methods. 

One of which is the ability to sort the fields by the class type, and by the return class type in class member methods.

Given a sample code:

public class Abs {}
public class Bar {}

public class Foo {
    public int count;
    public Bar bar;
    public Abs getAbs() { return new Abs(); }
    public Foo getFoo() { return this; }
    public void setCount(int count) { this.count = count; }
}

When sorting by class type, we should get the following list when viewing the Outline for class Foo:

1. getAbs (Abs)
2. bar (Bar)
3. getFoo (Foo)
4. count (int)
5. setCount (void)


Having multiple sort orders in the Outline view would be wonderful, too.