| Summary: | FEATURE - GridLayout - reorder components by GridData | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Ludwig Moser <luke2000> | ||||||||
| Component: | SWT | Assignee: | Platform-SWT-Inbox <platform-swt-inbox> | ||||||||
| Status: | NEW --- | QA Contact: | |||||||||
| Severity: | enhancement | ||||||||||
| Priority: | P3 | CC: | luke2000, markus.kell.r, remy.suen | ||||||||
| Version: | 3.7 | ||||||||||
| Target Milestone: | --- | ||||||||||
| Hardware: | PC | ||||||||||
| OS: | Windows XP | ||||||||||
| Whiteboard: | |||||||||||
| Attachments: |
|
||||||||||
|
Description
Ludwig Moser
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[]). |