Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 199557 Details for
Bug 351935
FEATURE - GridLayout - reorder components by GridData
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
the Comparator to sort the Array of Components by index
GridLayoutComparator.java (text/x-java-source), 451 bytes, created by
Ludwig Moser
on 2011-07-13 05:46:39 EDT
(
hide
)
Description:
the Comparator to sort the Array of Components by index
Filename:
MIME Type:
Creator:
Ludwig Moser
Created:
2011-07-13 05:46:39 EDT
Size:
451 bytes
patch
obsolete
>package listTests.layout; > >import java.util.Comparator; > >import org.eclipse.swt.widgets.Control; > >class GridLayoutComparator implements Comparator<Control> { > public int compare(Control c1, Control c2) { > GridData gd1 = (GridData) c1.getLayoutData(); > GridData gd2 = (GridData) c2.getLayoutData(); > if (gd1 == null) { > gd1 = new GridData(); > } > if (gd2 == null) { > gd2 = new GridData(); > } > return gd1.compareTo(gd2); > } >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 351935
:
199555
|
199556
| 199557