int showDirectoryPicker () { Browser browser = getBrowser (parentHandle); Shell parent = null; if (browser != null) { parent = browser.getShell (); } else { parent = new Shell (); } DirectoryDialog dialog = new DirectoryDialog (parent, SWT.NONE); if (title != null) dialog.setText (title); if (directory != null) dialog.setFilterPath (directory); directory = dialog.open (); title = defaultFilename = null; files = masks = null; return directory == null ? nsIFilePicker.returnCancel : nsIFilePicker.returnOK; }
int showDirectoryPicker () { Browser browser = getBrowser (parentHandle); Shell parent = null; if (browser != null) { parent = browser.getShell (); } else { parent = new Shell (); } DirectoryDialog dialog = new DirectoryDialog (parent, SWT.NONE); if (title != null) dialog.setText (title); if (directory != null) dialog.setFilterPath (directory); directory = dialog.open (); title = defaultFilename = null; files = masks = null; return directory == null ? nsIFilePicker.returnCancel : nsIFilePicker.returnOK; }
int showDirectoryPicker () { Browser browser = getBrowser (parentHandle); Shell parent = null; if (browser != null) { parent = browser.getShell (); } else { parent = new Shell (); } DirectoryDialog dialog = new DirectoryDialog (parent, SWT.NONE); if (title != null) dialog.setText (title); if (directory != null) dialog.setFilterPath (directory); directory = dialog.open (); title = defaultFilename = null; files = masks = null; return directory == null ? nsIFilePicker.returnCancel : nsIFilePicker.returnOK; }
int showDirectoryPicker () { Browser browser = getBrowser (parentHandle); Shell parent = null; if (browser != null) { parent = browser.getShell (); } else { parent = new Shell (); } DirectoryDialog dialog = new DirectoryDialog (parent, SWT.NONE); if (title != null) dialog.setText (title); if (directory != null) dialog.setFilterPath (directory); directory = dialog.open (); title = defaultFilename = null; files = masks = null; return directory == null ? nsIFilePicker.returnCancel : nsIFilePicker.returnOK; }
int showDirectoryPicker () { Browser browser = getBrowser (parentHandle); Shell parent = null; if (browser != null) { parent = browser.getShell (); } else { parent = new Shell (); } DirectoryDialog dialog = new DirectoryDialog (parent, SWT.NONE); if (title != null) dialog.setText (title); if (directory != null) dialog.setFilterPath (directory); directory = dialog.open (); title = defaultFilename = null; files = masks = null; return directory == null ? nsIFilePicker.returnCancel : nsIFilePicker.returnOK; }
Browser browser = getBrowser (parentHandle); Shell parent = null; if (browser != null) {
Browser browser = getBrowser (parentHandle); Shell parent = null; if (browser != null) {
Browser browser = getBrowser (parentHandle); Shell parent = null; if (browser != null) {
Browser browser = getBrowser (parentHandle); Shell parent = null; if (browser != null) {
Browser browser = getBrowser (parentHandle); Shell parent = null; if (browser != null) {