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 205187 Details for
Bug 360949
Strange Layout with TabFolder
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.
A minimalistic example demonstrating the problem.
Test.java (text/x-java), 1.01 KB, created by
Sebastian Bauer
on 2011-10-14 08:01:53 EDT
(
hide
)
Description:
A minimalistic example demonstrating the problem.
Filename:
MIME Type:
Creator:
Sebastian Bauer
Created:
2011-10-14 08:01:53 EDT
Size:
1.01 KB
patch
obsolete
>import org.eclipse.rwt.lifecycle.IEntryPoint; >import org.eclipse.swt.layout.FillLayout; >import org.eclipse.swt.widgets.Canvas; >import org.eclipse.swt.widgets.Composite; >import org.eclipse.swt.widgets.Display; >import org.eclipse.swt.widgets.Shell; >import org.eclipse.swt.widgets.TabFolder; >import org.eclipse.swt.widgets.TabItem; > >public class Test implements IEntryPoint >{ > private Display display; > > @Override > public int createUI() > { > display = new Display(); > Shell shell = new Shell( display, 0 ); > shell.setLayout(new FillLayout()); > > TabFolder tf = new TabFolder(shell, 0); > TabItem ti = new TabItem(tf,0); > ti.setText("Tab 1"); > ti.setControl(new Composite(tf, 0)); > > TabItem ti2 = new TabItem(tf,0); > ti2.setControl(new Canvas(tf, 0)); > ti2.setText("Tab 2"); > > shell.setMaximized(true); > shell.layout(); > shell.open(); > while( !shell.isDisposed() ) { > if( !display.readAndDispatch() ) > display.sleep(); > } > display.dispose(); > return 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 Raw
Actions:
View
Attachments on
bug 360949
: 205187