Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 350158 - ClearPlaceHolderJob causes the parent node collapses on its own (Linux)
Summary: ClearPlaceHolderJob causes the parent node collapses on its own (Linux)
Status: RESOLVED FIXED
Alias: None
Product: WTP Java EE Tools
Classification: WebTools
Component: jst.j2ee (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 3.2.5   Edit
Assignee: Salvador Zalapa CLA
QA Contact: Chuck Bridgham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-23 11:07 EDT by Salvador Zalapa CLA
Modified: 2011-06-27 11:45 EDT (History)
2 users (show)

See Also:
cbridgha: review+


Attachments
The fix consists on switching the order of the steps in the ClearPlaceHolderJob, so that the children are added first before removing the placeholder node. (974 bytes, patch)
2011-06-23 11:11 EDT, Salvador Zalapa CLA
shr31223: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Salvador Zalapa CLA 2011-06-23 11:07:57 EDT
Build Identifier: M20110210-1200

On Linux, whenever a tree node has no children, the node will collapse on its own.  This condition becomes true when the ClearPlaceHolderJob runs, since the placeholder node is removed before a child is added.  

Reproducible: Always
Comment 1 Salvador Zalapa CLA 2011-06-23 11:11:32 EDT
Created attachment 198473 [details]
The fix consists on switching the order of the steps in the ClearPlaceHolderJob, so that the children are added first before removing the placeholder node.
Comment 2 Chuck Bridgham CLA 2011-06-23 13:18:48 EDT
approve - the order change has been tested in all OS environments.
Comment 3 Roberto Sanchez Herrera CLA 2011-06-27 11:00:54 EDT
Code committed to R3_2_maintenance for WTP 3.2.5
Comment 4 Roberto Sanchez Herrera CLA 2011-06-27 11:44:52 EDT
Committed to HEAD for WTP 3.3.1 and 3.4