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 251680 Details for
Bug 427776
[GTK3] JVM running Eclipse crashes several times per day to SIGSEGV in gdk_window_get_support_multidevice
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.
Sample program
Bug427776.java (text/plain), 1.45 KB, created by
Marc-André Laperle
on 2015-03-18 01:21:41 EDT
(
hide
)
Description:
Sample program
Filename:
MIME Type:
Creator:
Marc-André Laperle
Created:
2015-03-18 01:21:41 EDT
Size:
1.45 KB
patch
obsolete
>import org.eclipse.swt.SWT; >import org.eclipse.swt.events.MouseEvent; >import org.eclipse.swt.events.MouseMoveListener; >import org.eclipse.swt.layout.GridData; >import org.eclipse.swt.layout.GridLayout; >import org.eclipse.swt.widgets.Button; >import org.eclipse.swt.widgets.Display; >import org.eclipse.swt.widgets.FileDialog; >import org.eclipse.swt.widgets.Shell; > >public class Bug427776 { > > public static void main(String[] args) { > Display display = new Display(); > final Shell shell = new Shell(display); > shell.setLayout(new GridLayout()); > > final Button b = new Button(shell, SWT.PUSH); > b.setText("Place your cursor here and wait a few seconds"); > GridData layoutData = new GridData(SWT.FILL, SWT.FILL, true, true); > b.setLayoutData(layoutData); > b.addMouseMoveListener(new MouseMoveListener() { > @Override > public void mouseMove(MouseEvent e) { > b.setText("Wait for the crash"); > } > }); > > display.timerExec(5000, new Runnable() { > > @Override > public void run() { > b.setEnabled(false); > } > }); > > display.timerExec(7000, new Runnable() { > > @Override > public void run() { > b.setEnabled(true); > } > }); > > display.timerExec(9000, new Runnable() { > > @Override > public void run() { > FileDialog fd = new FileDialog(shell); > fd.open(); > } > }); > > shell.pack(); > shell.setSize(500, 500); > shell.open(); > while (!shell.isDisposed()) { > if (!display.readAndDispatch()) > display.sleep(); > } > display.dispose(); > } >}
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 427776
:
239776
|
251148
|
251150
| 251680