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

Bug 244752

Summary: GalleryTreeViewer.handleTreeViewer() needs to detect uninitialized nodes differently than TreeViewer
Product: z_Archived Reporter: Peter Centgraf <peter>
Component: NebulaAssignee: Nicolas Richeton <nicolas.richeton>
Status: CLOSED WONTFIX QA Contact:
Severity: enhancement    
Priority: P1 CC: laurent.caron
Version: unspecifiedKeywords: plan
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Peter Centgraf CLA 2008-08-20 16:35:23 EDT
GalleryTreeViewer.handleTreeExpand() -- line 1071 as of this writing -- needs to detect an uninitialized tree node in a different way than TreeViewer does.  TreeViewer checks for a single child node with no "data" set.  Gallery marks this case with an uninitialized array of children.  In other words, "children[0].getData() == null" should be replaced with "children[0] == null".
Comment 1 Laurent CARON CLA 2019-09-18 15:21:48 EDT
The TreeViewer was deeply refactored since 2008, making this bug no longer relevant