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 140849 Details for
Bug 282506
[Shell] StackOverflow when calling Shell#close in Deactivate listener
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.
Snippet to reproduce the error
clipboard.txt (text/plain), 1.19 KB, created by
Ralf Sternberg
on 2009-07-06 07:10:51 EDT
(
hide
)
Description:
Snippet to reproduce the error
Filename:
MIME Type:
Creator:
Ralf Sternberg
Created:
2009-07-06 07:10:51 EDT
Size:
1.19 KB
patch
obsolete
>import org.eclipse.rwt.lifecycle.IEntryPoint; >import org.eclipse.swt.SWT; >import org.eclipse.swt.events.*; >import org.eclipse.swt.layout.FillLayout; >import org.eclipse.swt.layout.GridLayout; >import org.eclipse.swt.widgets.*; > >public class ShellSnippet implements IEntryPoint { > > public int createUI() { > Display display = new Display(); > Shell shell = new Shell( display ); > shell.setText( "Main Shell" ); > shell.setLayout( new GridLayout() ); > shell.setBounds( 20, 20, 100, 100); > shell.open(); > > final Shell dialog = new Shell( shell ); > dialog.setText( "Dialog Shell" ); > dialog.setLayout( new FillLayout() ); > Button button = new Button( dialog, SWT.PUSH ); > button.setText( "Close" ); > button.addSelectionListener( new SelectionAdapter() { > public void widgetSelected( SelectionEvent e ) { > dialog.close(); > } > }); > dialog.addShellListener( new ShellAdapter() { > > public void shellDeactivated( ShellEvent e ) { > dialog.close(); > } > }); > dialog.setBounds( 30, 30, 100, 100); > dialog.open(); > > while( !shell.isDisposed() ) { > if( !display.readAndDispatch() ) { > display.sleep(); > } > } > 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 282506
: 140849 |
150715