Bug 539048 - Package Explorer order of Source dirs is not the same as defined in Java Build Path > Source tab
Summary: Package Explorer order of Source dirs is not the same as defined in Java Buil...
Status: CLOSED DUPLICATE of bug 538236
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.8   Edit
Hardware: PC Windows 10
: P3 normal (vote)
Target Milestone: 4.10 M3   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 223318
Blocks:
  Show dependency tree
 
Reported: 2018-09-13 16:26 EDT by Krzysztof Szymko CLA
Modified: 2018-10-17 17:10 EDT (History)
1 user (show)

See Also:


Attachments
Screenshot (249.37 KB, image/png)
2018-10-10 01:50 EDT, Karsten Thoms CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Krzysztof Szymko CLA 2018-09-13 16:26:13 EDT
I have added following dirs on the Source tab in Java Build Path:

PROJECT_NAME/grails-app/assets
PROJECT_NAME/grails-app/conf
PROJECT_NAME/grails-app/controllers
PROJECT_NAME/grails-app/domain
PROJECT_NAME/grails-app/i18n
PROJECT_NAME/grails-app/init
PROJECT_NAME/grails-app/jobs
PROJECT_NAME/grails-app/services
PROJECT_NAME/grails-app/taglib
PROJECT_NAME/grails-app/utils
PROJECT_NAME/grails-app/views
PROJECT_NAME/src/main/java
PROJECT_NAME/src/main/groovy
PROJECT_NAME/src/main/resources
PROJECT_NAME/src/test/groovy

on the Package Explorer view I get the following order:

PROJECT_NAME/grails-app/assets
PROJECT_NAME/grails-app/conf
PROJECT_NAME/grails-app/controllers
PROJECT_NAME/src/main/groovy
PROJECT_NAME/src/test/groovy
PROJECT_NAME/grails-app/domain
PROJECT_NAME/grails-app/i18n
PROJECT_NAME/grails-app/init
PROJECT_NAME/src/main/java
PROJECT_NAME/grails-app/jobs
PROJECT_NAME/src/main/resources
PROJECT_NAME/grails-app/services
PROJECT_NAME/grails-app/taglib
PROJECT_NAME/grails-app/utils
PROJECT_NAME/grails-app/views

It looks like it is sorting only by the last part of directory name 
and NOT by the full name of entry made in Source tab.

I would like to have the same order on Package Explorer as defined
in Java Build Path > Sources. Am I missing some config option or 
this is a bug?

Btw: Project Explorer is showing these dir as in Java Build Path > Sources
which is OK, but I prefer to work with Package Explorer view.
Comment 1 Noopur Gupta CLA 2018-09-14 07:58:48 EDT
Karsten, can you please check and comment on this?
Comment 2 Eclipse Genie CLA 2018-10-10 01:49:51 EDT
New Gerrit change created: https://git.eclipse.org/r/130719
Comment 3 Karsten Thoms CLA 2018-10-10 01:50:02 EDT
Created attachment 276192 [details]
Screenshot

Attached screenshots show the bogus behavior and the effect of the fix
Comment 4 Karsten Thoms CLA 2018-10-17 17:10:18 EDT

*** This bug has been marked as a duplicate of bug 538236 ***