KNU
KNU

Reputation: 2515

displaying functions as order by declaration in eclipse-project explorer

My eclipse project explorer shows function/var declaration as this(alphabetically sorted) :

enter image description here

However, I want it to look as this :

enter image description here

which happens to be the order of declaration in my class.

Kindly help me in achieving this.

Upvotes: 2

Views: 347

Answers (1)

shillner
shillner

Reputation: 1846

Unfortunately there is no option to 'unsort' the package explorer view, except the one that shows public members first (Window -> Preferences -> Java -> Appearance -> Members Sort Order). I also think that this setting will be implemented soon since the following bugs are really old an have been resolved as WONTFIX.

Bug 51611 - No option to not sort members in package explorer
Bug 32930 - Unify Member Sorting [render] [browsing] [outliner] [package explorer]

As an alternative you can use the outline or members view. There you can sort alphabetically or by declaration order using the toolbar button of the view.

I personally like the outline view more than the package explorer for member overview since I don't like it so much when the package explorer gets messed up with too much information ...

Upvotes: 4

Related Questions