Community
Participate
Working Groups
Build Identifier: 20110218-0911 reordering the components is currently not possible (only excluding them) ordering the components by an index would be fine. (i implemented it: files will get attached) Reproducible: Always
Created attachment 199555 [details] modyfied GridData to work with index
Created attachment 199556 [details] modyfied GridLayout to work with index
Created attachment 199557 [details] the Comparator to sort the Array of Components by index
Control#moveAbove/Below(Control) can already be used to reorder the controls. Setting indexes in GridData is a bit problematic, since there's no guarantee that indexes are unique. This can be a subtle source of bugs. If anything is really necessary here, then I'd prefer something like Composite#setOrder(Control[]).