Bug 44066

Summary: Package Explorer doesn't show new file
Product: [Eclipse Project] JDT Reporter: Markus Keller <markus.kell.r>
Component: CoreAssignee: Jerome Lanneluc <jerome_lanneluc>
Status: VERIFIED FIXED QA Contact:
Severity: major    
Priority: P3 CC: daniel_megert
Version: 3.0   
Target Milestone: 3.0 M4   
Hardware: PC   
OS: Windows XP   
See Also: https://bugs.eclipse.org/bugs/show_bug.cgi?id=540589
Whiteboard:

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.