Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 22512

Summary: [Viewers] Effects on Package Explorer of adding classes [package explorer]
Product: [Eclipse Project] Platform Reporter: Jeff Mellen <jeffm>
Component: UIAssignee: Nick Edgar <n.a.edgar>
Status: RESOLVED DUPLICATE QA Contact:
Severity: minor    
Priority: P3    
Version: 2.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Jeff Mellen CLA 2002-08-17 16:49:30 EDT
Hey--

When I have a tree node expanded in the Package Explorer, and I add a class, 
the node that was at the old index of the expanded node is expanded, not the 
node that corresponds to the same class.  Simplified conceptual example:

PRIOR TO ADDING CLASS
---------------------

- ClassB.java
+ ClassC.java
   - fieldC
   - methodC()

POST ADDING CLASS
-----------------

- ClassA.java
+ ClassB.java
   - fieldB
   - methodB()
- ClassC.java

Deletion doesn't appear to have the reverse effect.
Comment 1 Dirk Baeumer CLA 2002-08-19 05:09:21 EDT
Still exists under 2.0.1.
Comment 2 Erich Gamma CLA 2002-08-28 09:01:43 EDT
this is a known JFace expansion problem - moving to Platform UI
Comment 3 Nick Edgar CLA 2003-02-10 07:38:18 EST

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