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

Bug 350158

Summary: ClearPlaceHolderJob causes the parent node collapses on its own (Linux)
Product: [WebTools] WTP Java EE Tools Reporter: Salvador Zalapa <zalapa>
Component: jst.j2eeAssignee: Salvador Zalapa <zalapa>
Status: RESOLVED FIXED QA Contact: Chuck Bridgham <cbridgha>
Severity: normal    
Priority: P3 CC: ccc, shr31223
Version: unspecifiedFlags: cbridgha: review+
Target Milestone: 3.2.5   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
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. shr31223: iplog+

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