Bug 44066 - Package Explorer doesn't show new file
Summary: Package Explorer doesn't show new file
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: 3.0 M4   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 43900 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-10-02 07:19 EDT by Markus Keller CLA
Modified: 2018-10-30 04:45 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Keller CLA 2003-10-02 07:19:21 EDT
I20030930
Steps:
- new Workspace, new java project "zzz" with source folder "src, output "bin"
- in the Package Explorer, open context menu on "src", create new file "file.txt"
- file.txt is created but doesn't show up in Package Explorer (is OK in Navigator)
- renaming the folder "src" to "qwerty" magically reveals the hidden file ...
Comment 1 Dirk Baeumer CLA 2003-10-02 11:17:53 EDT
Markus, is this a pure 20030930 build or with the latest plug-in export which 
has primary working copies enabled.
Comment 2 Markus Keller CLA 2003-10-02 11:22:10 EDT
Clean 20030930. I just filed bug 44081, which might be related.
Comment 3 Markus Keller CLA 2003-10-02 12:05:34 EDT
- close all Package Explorer views and reopen them -> file is still not visible
- close project and reopen -> file is visible

Moving to jdt core for comments.
Comment 4 Jerome Lanneluc CLA 2003-10-06 04:47:12 EDT
After unzipping I20030930, starting eclipse.exe and following the above steps, 
I cannot reproduce: 'file.txt' shows up under 'src' and is open in the default 
editor.

Do you have more information?
Comment 5 Markus Keller CLA 2003-10-06 05:10:17 EDT
A nasty detail I didn't mention: before creating the new file, you have to
EXPAND the "src" folder by clicking on the "+" in front of "src" in the Package
Explorer.

If you create a second new file in "src" after the folder has been opened, that
second new file also doesn't show up.
Comment 6 Jerome Lanneluc CLA 2003-10-06 12:04:13 EDT
DeltaProcessor.checkProjectsBeeingAddedOrRemoved(...) was not marking roots as 
stale when the java nature is added.

Fixed and added regression test 
JavaElementDeltaTests.testAddJavaNatureAndClasspath()
Comment 7 Frederic Fusier CLA 2003-10-07 14:02:01 EDT
*** Bug 43900 has been marked as a duplicate of this bug. ***
Comment 8 Markus Keller CLA 2003-10-09 05:13:31 EDT
Verified in I20031008_1556.