Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 65782 - New file not in correct order in package explorer [package explorer]
Summary: New file not in correct order in package explorer [package explorer]
Status: RESOLVED DUPLICATE of bug 35381
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.0   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-04 14:43 EDT by Matthew Conway CLA
Modified: 2004-06-20 17:19 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matthew Conway CLA 2004-06-04 14:43:15 EDT
If I create a new file in the package explorer by RC->New->File or Copy/Paste,
the file ends up at the end of the list for that directory instead of showing up
in its sorted position.  Plain old Navigator does create the file in its sorted
position.

This is with eclipse 3.0RC1 on linux fedora core 2
Comment 1 Dirk Baeumer CLA 2004-06-04 18:10:02 EDT
Not critical for 3.0.
Comment 2 Dirk Baeumer CLA 2004-06-06 13:11:04 EDT
Actually, this is on purpose. Files in packages are sorted by categories: 
first files being CUs and then other non Java files.
Comment 3 Matthew Conway CLA 2004-06-07 17:26:21 EDT
The reason given for this being invalid is itself invalid =)

If I create a file it doesn't appear in the sorted position amongst other files
of its own type.  i.e. say I have some java files and some .conf files in a
folder/package, if I create a new conf file, it appears at the end of the list
instead of sorted with the other conf files.

Comment 4 Dirk Baeumer CLA 2004-06-07 17:52:43 EDT
This works for me on I20040607_0800 using the following test case:

- create package p1
- add G.java
- add I.java
- add H.java <== inserted corrrectly
- create X.conf
- create Z.conf
- create Y.conf <== inserted correctly

Do you have steps to reproduce this
Comment 5 Dirk Baeumer CLA 2004-06-08 19:27:01 EDT
Closing as works for me.
Comment 6 Matthew Conway CLA 2004-06-09 14:14:03 EDT
The misordering happen when you create the files in a package, but rather when
you create the files in a plain folder - I just duplicated this on RC1 on the
project folder, a source folder, the default package within the source folder,
and a random folder within my project.


RC folder->File->New->File-> c.conf
RC folder->File->New->File-> a.conf <-- goes to end of list

If you can't duplicate it, then perhaps it is a linux issue?

Comment 7 Matthew Conway CLA 2004-06-18 14:18:14 EDT
I meant to say:
The misordering DOES NOT happen when you create the files in a package, but
rather when you create the files in a plain folder
Comment 8 Dirk Baeumer CLA 2004-06-20 17:19:00 EDT

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