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 9617 Details for
Bug 58868
TabFolder should support multi row style option
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
Patch to the examples to use SWT.MULTI
org.eclipse.swt.examples.patch.txt (text/plain), 2.90 KB, created by
Ed Burnette
on 2004-04-16 17:34:53 EDT
(
hide
)
Description:
Patch to the examples to use SWT.MULTI
Filename:
MIME Type:
Creator:
Ed Burnette
Created:
2004-04-16 17:34:53 EDT
Size:
2.90 KB
patch
obsolete
>Index: src/org/eclipse/swt/examples/controlexample/ControlExample.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/ControlExample.java,v >retrieving revision 1.27 >diff -u -r1.27 ControlExample.java >--- src/org/eclipse/swt/examples/controlexample/ControlExample.java 14 Nov 2003 17:07:16 -0000 1.27 >+++ src/org/eclipse/swt/examples/controlexample/ControlExample.java 16 Apr 2004 21:24:03 -0000 >@@ -40,7 +40,7 @@ > */ > public ControlExample(Composite parent) { > initResources(); >- tabFolder = new TabFolder (parent, SWT.NONE); >+ tabFolder = new TabFolder (parent, SWT.MULTI); > Tab [] tabs = createTabs(); > for (int i=0; i<tabs.length; i++) { > TabItem item = new TabItem (tabFolder, SWT.NONE); >Index: src/org/eclipse/swt/examples/controlexample/TabFolderTab.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/TabFolderTab.java,v >retrieving revision 1.2 >diff -u -r1.2 TabFolderTab.java >--- src/org/eclipse/swt/examples/controlexample/TabFolderTab.java 10 Nov 2003 22:42:46 -0000 1.2 >+++ src/org/eclipse/swt/examples/controlexample/TabFolderTab.java 16 Apr 2004 21:24:03 -0000 >@@ -22,7 +22,7 @@ > Group tabFolderGroup; > > /* Style widgets added to the "Style" group */ >- Button topButton, bottomButton; >+ Button topButton, bottomButton, singleButton, multiButton; > > static String [] TabItems1 = {ControlExample.getResourceString("TabItem1_0"), > ControlExample.getResourceString("TabItem1_1"), >@@ -57,6 +57,8 @@ > int style = getDefaultStyle(); > if (topButton.getSelection ()) style |= SWT.TOP; > if (bottomButton.getSelection ()) style |= SWT.BOTTOM; >+ if (singleButton.getSelection ()) style |= SWT.SINGLE; >+ if (multiButton.getSelection ()) style |= SWT.MULTI; > if (borderButton.getSelection ()) style |= SWT.BORDER; > > /* Create the example widgets */ >@@ -82,6 +84,11 @@ > topButton.setSelection(true); > bottomButton = new Button (styleGroup, SWT.RADIO); > bottomButton.setText ("SWT.BOTTOM"); >+ singleButton = new Button (styleGroup, SWT.RADIO); >+ singleButton.setText ("SWT.SINGLE"); >+ singleButton.setSelection(true); >+ multiButton = new Button (styleGroup, SWT.RADIO); >+ multiButton.setText ("SWT.MULTI"); > borderButton = new Button (styleGroup, SWT.CHECK); > borderButton.setText ("SWT.BORDER"); > >@@ -126,6 +133,8 @@ > super.setExampleWidgetState (); > topButton.setSelection ((tabFolder1.getStyle () & SWT.TOP) != 0); > bottomButton.setSelection ((tabFolder1.getStyle () & SWT.BOTTOM) != 0); >+ singleButton.setSelection ((tabFolder1.getStyle () & SWT.SINGLE) != 0); >+ multiButton.setSelection ((tabFolder1.getStyle () & SWT.MULTI) != 0); > borderButton.setSelection ((tabFolder1.getStyle () & SWT.BORDER) != 0); > } > }
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 58868
:
9610
|
9612
|
9613
|
9616
| 9617