|Re: FileDialog does not show [message #1161583 is a reply to message #1161101]
||Tue, 29 October 2013 22:26
| Scott Barrett
Registered: October 2013
I am experiencing this problem as well, though I get the org.eclipse.swt.widgets.FileDialog, created with the SWT.SAVE style, to appear once (but see below). Thereafter, when I create a FileDialog and call open on it, I get null returned without seeing the FileDialog.|
When debugging the RCP application, the second time that FileDialog.open is called, the call it makes to org.eclipse.swt.internal.cocoa.NSSavePanel.runModalForDirectory always returns 0 without making the OS X file save dialog appear.
Adding insult to injury, on the first call to FileDialog.open, the OS X file save dialog appears, it shows the file name set with FileDialog.setFileName, but does not present the directory that was set with the call to FileDialog.setFilterPath.
Here's an image of the empty file save dialog that appears the first time I call FileDialog.open.
As an added bonus, the Eclipse Indigo "Open File..." command shows the same behavior; i.e., it will only appear once!
Powered by FUDForum
. Page generated in 0.02353 seconds