Bug 7033 - Stale packages view after moving compilation units
Summary: Stale packages view after moving compilation units
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 2.0 M2   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 7070 (view as bug list)
Depends on:
Blocks:
 
Reported: 2001-12-18 06:14 EST by Erich Gamma CLA
Modified: 2002-01-11 08:56 EST (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 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. ***