Bug 7033

Summary: Stale packages view after moving compilation units
Product: [Eclipse Project] JDT Reporter: Erich Gamma <erich_gamma>
Component: CoreAssignee: Philipe Mulet <philippe_mulet>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: jeffmcaffer
Version: 2.0   
Target Milestone: 2.0 M2   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Erich Gamma CLA 2001-12-18 06:14:48 EST
Create the Example project JUnit.

1) move ActiveTestSuite.java from junit.extension to the junit package using 
the move action
2) the junit package doesn't show up in the packages view

The delta we are getting from JCore is correct, but it looks
like the JavaModel isn't up to date. When asking calling
hasChildren() on "junit" false is returned.
Comment 1 Philipe Mulet CLA 2001-12-18 06:33:43 EST
Smells like we did not close the affected element when adding the moved child.
Comment 2 Jerome Lanneluc CLA 2001-12-18 07:50:12 EST
Problem was only when moving a cu from/to a package that was the pre/suffix of 
the original package.
The delta processor was creating the wrong element, thus not updating the java 
model. (this wrong element was not showing up for the client since the delta 
created by the operation was fired).
Comment 3 Jerome Lanneluc CLA 2001-12-19 06:31:49 EST
*** Bug 7070 has been marked as a duplicate of this bug. ***