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 19713 Details for
Bug 46556
[Dialogs] find dialog hides main window
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 in pure SWT
Bug46556.java (text/plain), 1.74 KB, created by
Markus Keller
on 2005-04-09 11:57:45 EDT
(
hide
)
Description:
Snippet to reproduce in pure SWT
Filename:
MIME Type:
Creator:
Markus Keller
Created:
2005-04-09 11:57:45 EDT
Size:
1.74 KB
patch
obsolete
>package bugs; > >import org.eclipse.swt.*; >import org.eclipse.swt.widgets.*; >import org.eclipse.swt.layout.*; >import org.eclipse.swt.events.*; > >public class Bug46556 { > > static Display display; > static Shell shell; > static Text text; > > public static void main(String[] args) { > display= new Display(); > shell= new Shell(display, SWT.SHELL_TRIM); > shell.setLayout(new GridLayout()); > shell.setText("Modeless Dialog Test"); > > Button button= new Button(shell, SWT.PUSH); > button.setText("&Open Modeless Dialog"); > button.addSelectionListener(new SelectionAdapter() { > > public void widgetSelected(SelectionEvent e) { > final Shell dialog= new Shell(shell, SWT.DIALOG_TRIM | SWT.MODELESS); > dialog.setLayout(new GridLayout()); > dialog.setText("Modeless"); > > final Text textField= new Text(dialog, SWT.SINGLE | SWT.BORDER); > textField.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); > > Button close= new Button(dialog, SWT.PUSH); > close.setText("&Close"); > close.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); > close.addSelectionListener(new SelectionAdapter() { > > public void widgetSelected(SelectionEvent e) { > dialog.close(); > } > }); > dialog.pack(); > dialog.open(); > }; > }); > > text= new Text(shell, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL); > GridData data= new GridData(GridData.GRAB_VERTICAL | GridData.FILL_HORIZONTAL); > data.heightHint= 100; > text.setLayoutData(data); > > /* > * XXX: this phantom shell is important to reproduce! > */ > Shell otherShell= new Shell(shell, SWT.NO_TRIM | SWT.ON_TOP); > > shell.pack(); > shell.open(); > while (!shell.isDisposed()) { > if (!display.readAndDispatch()) > display.sleep(); > } > } >}
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 46556
: 19713 |
265208