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 183044 Details for
Bug 330143
A patch to make RowLayout layout controls in reverse order on demand
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
A patch for org.eclipse.swt.layout.RowLayout to layout controls in reverse order
bug330143.txt (text/plain), 881 bytes, created by
Serge Yuschenko
on 2010-11-12 16:15:35 EST
(
hide
)
Description:
A patch for org.eclipse.swt.layout.RowLayout to layout controls in reverse order
Filename:
MIME Type:
Creator:
Serge Yuschenko
Created:
2010-11-12 16:15:35 EST
Size:
881 bytes
patch
obsolete
>Index: RowLayout.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/layout/RowLayout.java,v >retrieving revision 1.42 >diff -r1.42 RowLayout.java >12a13,16 >> import java.util.Arrays; >> import java.util.Collections; >> import java.util.List; >> >183a188,194 >> /** >> * reverse specifies whether the controls should be placed in reverse order. >> * >> * The default value is false. >> */ >> public boolean reverse = false; >> >244a256,257 >> if( reverse ) >> children = (Control[]) doReverse( children ); >363a377,378 >> if( reverse ) >> children = (Control[]) doReverse( children ); >505a521,526 >> >> private Object[] doReverse( Object[] arr ) { >> List<Object> list = Arrays.asList( arr ); >> Collections.reverse( list ); >> return list.toArray(); >> }
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 Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 330143
: 183044