Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 212074 - GalleryItem(parent, style, index)
Summary: GalleryItem(parent, style, index)
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Nebula (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Nicolas Richeton CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 212071
  Show dependency tree
 
Reported: 2007-12-05 16:41 EST by Peter Centgraf CLA
Modified: 2021-07-05 11:39 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Centgraf CLA 2007-12-05 16:41:26 EST
Currently, GalleryItems must be created in the order that they will be displayed, and there is no way to rearrange them.  Other SWT Items support a constructor that takes an index, so that instances can be created out of order.  GalleryItem should have a similar constructor.

Note that the JFace APIs assume that such a constructor exists, so this is necessary for a functional GalleryTreeViewer.
Comment 1 Nicolas Richeton CLA 2007-12-07 04:29:27 EST
Fixed on CVS. I've also added a new snippet which creates item in reverse order.
Thanks for reporting this.
Comment 2 Nicolas Richeton CLA 2009-02-25 07:37:06 EST
Closing the bug