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 268532 Details for
Bug 410810
Tile bar disappears when setting SWT.ON_TOP style to dialog
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.
test case illustrating issue
SWTOnTopTest.java (text/x-java), 1.25 KB, created by
Nate Jensen
on 2017-05-23 11:58:47 EDT
(
hide
)
Description:
test case illustrating issue
Filename:
MIME Type:
Creator:
Nate Jensen
Created:
2017-05-23 11:58:47 EDT
Size:
1.25 KB
patch
obsolete
>import org.eclipse.swt.SWT; >import org.eclipse.swt.widgets.Display; >import org.eclipse.swt.widgets.Shell; > >public class SWTOnTopTest { > private static class TestDialog { > private Shell shell; > > public TestDialog(Display display, String title, int style) { > shell = new Shell(display, style); > shell.setText(title); > } > > public void open() { > shell.setSize(300, 200); > shell.open(); > } > > public void setLocation(int x, int y) { > shell.setLocation(x, y); > } > > public boolean isDisposed() { > return shell.isDisposed(); > } > } > > public static void main(String[] args) { > Display display = Display.getDefault(); > > TestDialog regularDialog = new TestDialog(display, "Regular Dialog", > SWT.DIALOG_TRIM); > regularDialog.setLocation(0, 0); > regularDialog.open(); > > TestDialog onTopDialog = new TestDialog(display, "On Top Dialog", > SWT.DIALOG_TRIM | SWT.ON_TOP); > onTopDialog.setLocation(400, 0); > onTopDialog.open(); > > while (!regularDialog.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 410810
: 268532