Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 333345 - Order of project subfolders not consistent
Summary: Order of project subfolders not consistent
Status: RESOLVED INVALID
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.7   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-30 11:59 EST by Ralf Sternberg CLA
Modified: 2011-01-03 06:36 EST (History)
2 users (show)

See Also:


Attachments
Screenshot to illustrate the issue (37.01 KB, image/png)
2010-12-30 11:59 EST, Ralf Sternberg CLA
no flags Details

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