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 164107 Details for
Bug 304780
Eclipse hangs while using FileDialog
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.
Testcase - SWT Snippet
FileDialogHang.java (text/plain), 1.24 KB, created by
Praveen
on 2010-04-07 14:22:34 EDT
(
hide
)
Description:
Testcase - SWT Snippet
Filename:
MIME Type:
Creator:
Praveen
Created:
2010-04-07 14:22:34 EDT
Size:
1.24 KB
patch
obsolete
>package org.eclipse.swt.snippets.MySnippets; > >import org.eclipse.swt.SWT; >import org.eclipse.swt.accessibility.AccessibleControlAdapter; >import org.eclipse.swt.events.SelectionEvent; >import org.eclipse.swt.events.SelectionListener; >import org.eclipse.swt.layout.GridLayout; >import org.eclipse.swt.widgets.Display; >import org.eclipse.swt.widgets.FileDialog; >import org.eclipse.swt.widgets.Shell; >import org.eclipse.swt.widgets.Text; > >public class FileDialogHang { > > public static void main(String[] args) { > Display display = new Display(); > final Shell shell = new Shell(); > shell.setLayout(new GridLayout()); > > Text text = new Text(shell, SWT.SINGLE); > text.addSelectionListener(new SelectionListener() { > public void widgetSelected(SelectionEvent e) { > } > > public void widgetDefaultSelected(SelectionEvent e) { > FileDialog fd = new FileDialog(shell); > fd.open(); > } > }); > // Below line causes the file dialog to hang. > //Remove the below line to have the file dialog to respond normally. > text.getAccessible ().addAccessibleControlListener(new AccessibleControlAdapter() {}); > shell.pack(); > 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 304780
:
161095
| 164107 |
164572