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 244028 Details for
Bug 436757
Disposing TabFolder does not destruct TabFolder children on Client side
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.
Very simple snippet without workbench
SimpleEntryPoint.java (text/plain), 1.50 KB, created by
Ivan Furnadjiev
on 2014-06-06 02:25:16 EDT
(
hide
)
Description:
Very simple snippet without workbench
Filename:
MIME Type:
Creator:
Ivan Furnadjiev
Created:
2014-06-06 02:25:16 EDT
Size:
1.50 KB
patch
obsolete
>package rap.bugs.entrypoint; > >import org.eclipse.rap.rwt.application.AbstractEntryPoint; >import org.eclipse.swt.SWT; >import org.eclipse.swt.layout.GridData; >import org.eclipse.swt.layout.GridLayout; >import org.eclipse.swt.widgets.Button; >import org.eclipse.swt.widgets.Combo; >import org.eclipse.swt.widgets.Composite; >import org.eclipse.swt.widgets.TabFolder; >import org.eclipse.swt.widgets.TabItem; > >public class SimpleEntryPoint extends AbstractEntryPoint { > > @Override > protected void createContents( Composite parent ) { > final TabFolder tabFolder = new TabFolder( parent, SWT.TOP ); > tabFolder.setLayoutData( new GridData( SWT.FILL, SWT.FILL, true, true ) ); > TabItem tabItem = new TabItem( tabFolder, SWT.NONE ); > tabItem.setText( "Test" ); > Composite composite = new Composite( tabFolder, SWT.NONE ); > composite.setLayoutData( new GridData( SWT.FILL, SWT.FILL, true, true ) ); > composite.setLayout( new GridLayout( 1, false ) ); > Combo combo = new Combo( composite, SWT.NONE ); > combo.setItems( new String[] { "a", "b", "c" } ); > tabItem.setControl( composite ); > final Button button1 = new Button( parent, SWT.PUSH ); > button1.setText( "Push 1" ); > final Button button2 = new Button( parent, SWT.PUSH ); > button2.setText( "Push 2" ); > > button1.setFocus(); > parent.getDisplay().timerExec( 5000, new Runnable() { > @Override > public void run() { > tabFolder.dispose(); > button2.setFocus(); > } > } ); > } > >}
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 436757
:
244020
| 244028