Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 333345

Summary: Order of project subfolders not consistent
Product: [Eclipse Project] JDT Reporter: Ralf Sternberg <rsternberg>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: P3 CC: daniel_megert, remy.suen
Version: 3.7   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Screenshot to illustrate the issue none

Description Ralf Sternberg CLA 2010-12-30 11:59:35 EST
Created attachment 185911 [details]
Screenshot to illustrate the issue

The elements of a project seem to appear in an arbitrary order, at least JRE and project dependencies are displayed at different locations in every project. In order to provide a cleaner UI, I'd suggest to always show contents in a fixed order, e.g.:
* JRE first,
* then project dependencies,
* all source folders in alphabetic order,
* all other folders in alphabetic order,
* all files in alphabetic order
Comment 1 Remy Suen CLA 2010-12-30 13:16:02 EST
I think it's based on the order of elements in your .classpath file. If you try rearranging the elements, does it change the ordering?
Comment 2 Ralf Sternberg CLA 2010-12-30 13:51:32 EST
(In reply to comment #1)
> I think it's based on the order of elements in your .classpath file. If you try
> rearranging the elements, does it change the ordering?

Right! Apparently, the order of entries in the Package Explorer reflects exactly the structure of the .classpath file. So my request would then apply to the manipulation of classpath files by the IDE.
Comment 3 Remy Suen CLA 2010-12-30 13:54:20 EST
(In reply to comment #2)
> So my request would then apply to
> the manipulation of classpath files by the IDE.

Not completely sure I understand what you mean here. In any case, I'm kicking this over to JDT/UI.
Comment 4 Ralf Sternberg CLA 2010-12-30 14:06:41 EST
(In reply to comment #3)
> (In reply to comment #2)
> > So my request would then apply to
> > the manipulation of classpath files by the IDE.
> 
> Not completely sure I understand what you mean here. In any case, I'm kicking
> this over to JDT/UI.

I suggest that when .classpath files are created or changed, the entries should be sorted following a schema as suggested in comment 0.

This would help to tidy up the Package Explorer without needing to touch .classpath files.
Comment 5 Dani Megert CLA 2011-01-03 05:38:44 EST
> In order to provide a cleaner UI, I'd suggest to always show contents in a
> fixed order
It is in a fixed order, namely the order defined on the Java Build Path's 'Order and Export' page.