/** * * @param parent * @param title * @param extensions * @deprecated Use openFile(Window parent, String title, final String description, final Set<String> extensions) */ @Deprecated public static File openFile(Component parent, String title, Set<String> extensions) { return openFile(parent, title, null, extensions); }
/** * * @param parent * @param title * @param extensions * @deprecated Use openFile(Window parent, String title, final String description, final Set<String> extensions) */ @Deprecated public static File openFile(Component parent, String title, Set<String> extensions) { return openFile(parent, title, null, extensions); }
public void actionPerformed(ActionEvent e) { File f = UIUtil.openFile(UriEntryPanel.this, "Choose OWL source", "OWL File",UIHelper.OWL_EXTENSIONS); if (f != null) { physicalLocationField.setText(f.getPath()); regenerateImportSuggestions(); } } });
public void actionPerformed(ActionEvent e) { File f = UIUtil.openFile(UriEntryPanel.this, "Choose OWL source", "OWL File",UIHelper.OWL_EXTENSIONS); if (f != null) { physicalLocationField.setText(f.getPath()); regenerateImportSuggestions(); } } });
private void handleBrowse() { JFrame parent = null;//(JFrame) SwingUtilities.getAncestorOfClass(JFrame.class, this); if (parent == null) { parent = new JFrame(); } File f = UIUtil.openFile(parent, "Select an ontology file", "OWL File", fileExtensions); if (f != null) { textField.setText(f.getAbsolutePath()); } }
private void handleBrowse() { JFrame parent = new JFrame(); File f = UIUtil.openFile(parent, "Select an ontology file", "OWL File", fileExtensions); if (f != null) { textField.setText(f.getAbsolutePath()); } }
private void handleBrowse() { JFrame parent = null;//(JFrame) SwingUtilities.getAncestorOfClass(JFrame.class, this); if (parent == null) { parent = new JFrame(); } File f = UIUtil.openFile(parent, "Select an ontology file", "OWL File", fileExtensions); if (f != null) { textField.setText(f.getAbsolutePath()); } }
protected void browseForPath() { Set<String> exts = new HashSet<String>(); exts.add("dot"); exts.add("app"); exts.add("exe"); exts.add("bin"); File file = UIUtil.openFile(new JFrame(), "Dot Application", "Please select the dot application", exts); if(file != null) { pathField.setText(file.getPath()); } }
public static File chooseOSXFolder(Component parent, String title) { String prop = null; File file = null; try { prop = "apple.awt.fileDialogForDirectories"; System.setProperty(prop, "true"); file = UIUtil.openFile((Frame) SwingUtilities.getAncestorOfClass(Frame.class, parent), title, "Folder", Collections.singleton("")); } finally { System.setProperty(prop, "false"); } return file; } }
public void browseForFile() { Window f = (Window) SwingUtilities.getAncestorOfClass(Window.class, this); File file = dialogMode == OPEN_DIALOG_MODE ? UIUtil.openFile(f, fileChooserText, "OWL File", extensions) : UIUtil.saveFile(new JFrame(),fileChooserText, "OWL File", extensions); if (file != null) { textField.setText(file.toString()); } }
public static File chooseOSXFolder(Component parent, String title) { String prop = null; File file = null; try { prop = "apple.awt.fileDialogForDirectories"; System.setProperty(prop, "true"); file = UIUtil.openFile((Frame) SwingUtilities.getAncestorOfClass(Frame.class, parent), title, "Folder", Collections.singleton("")); } finally { System.setProperty(prop, "false"); } return file; } }
public void browseForFile() { Window f = (Window) SwingUtilities.getAncestorOfClass(Window.class, this); File file = dialogMode == OPEN_DIALOG_MODE ? UIUtil.openFile(f, fileChooserText, "OWL File", extensions) : UIUtil.saveFile(new JFrame(),fileChooserText, "OWL File", extensions); if (file != null) { textField.setText(file.toString()); } }
public void browseForFile() { Window f = (Window) SwingUtilities.getAncestorOfClass(Window.class, this); File file = dialogMode == OPEN_DIALOG_MODE ? UIUtil.openFile(f, fileChooserText, "OWL File", extensions) : UIUtil.saveFile(new JFrame(),fileChooserText, "OWL File", extensions); if (file != null) { textField.setText(file.toString()); } }
public File chooseOWLFile(String title) { JFrame f = (JFrame) SwingUtilities.getAncestorOfClass(JFrame.class, getParent()); if (f == null) { f = new JFrame(); } return UIUtil.openFile(f, title, "OWL File", OWL_EXTENSIONS); }
public File chooseOWLFile(String title) { JFrame f = (JFrame) SwingUtilities.getAncestorOfClass(JFrame.class, getParent()); if (f == null) { f = new JFrame(); } return UIUtil.openFile(f, title, "OWL File", OWL_EXTENSIONS); }
public File chooseOWLFile(String title) { JFrame f = (JFrame) SwingUtilities.getAncestorOfClass(JFrame.class, getParent()); if (f == null) { f = new JFrame(); } return UIUtil.openFile(f, title, "OWL File", OWL_EXTENSIONS); }
public File chooseOWLFile(String title) { JFrame f = (JFrame) SwingUtilities.getAncestorOfClass(JFrame.class, getParent()); if (f == null) { f = new JFrame(); } return UIUtil.openFile(f, title, "OWL File", OWL_EXTENSIONS); }
public void actionPerformed(ActionEvent e) { try { WorkspaceFrame frame = ProtegeManager.getInstance().getFrame(getOWLWorkspace()); File catalogFile = UIUtil.openFile( frame, "Select XML Catalog File", "Choose the XML file that contains the catalog information", Collections.singleton("xml")); if (catalogFile != null) { OntologyLibraryPanel.showDialog(getOWLEditorKit(), catalogFile); } } catch (IOException ex) { LoggerFactory.getLogger(EditOntologyLibraryAction.class) .error("An error occurred whilst attempting to edit the catalog file: {}", e); } }
public void actionPerformed(ActionEvent e) { try { File catalogFile = UIUtil.openFile(getOWLWorkspace(), "Choose catalog file containing ontology repository information", "Choose XML Catalog", Collections.singleton("xml")); if (catalogFile != null) { OntologyLibraryPanel.showDialog(getOWLEditorKit(), catalogFile); } } catch (Exception ex) { ProtegeApplication.getErrorLog().logError(ex); } }
public void actionPerformed(ActionEvent e) { try { File catalogFile = UIUtil.openFile(getOWLWorkspace(), "Choose catalog file containing ontology repository information", "Choose XML Catalog", Collections.singleton("xml")); if (catalogFile != null) { OntologyLibraryPanel.showDialog(getOWLEditorKit(), catalogFile); } } catch (Exception ex) { ProtegeApplication.getErrorLog().logError(ex); } }