public void browseForFolder() { File f = UIUtil.chooseFolder(this, "Select a folder"); if (f != null) { textField.setText(f.toString()); } }
public void browseForFolder() { File f = UIUtil.chooseFolder(this, "Select a folder"); if (f != null) { textField.setText(f.toString()); } }
public void actionPerformed(ActionEvent e) { File f = UIUtil.chooseFolder(FolderGroupPanel.this, "Folder for Ontology Repository"); if (f != null) { physicalLocationField.setText(f.getPath()); fireListeners(); } } });
public void browseForFolder() { File f = UIUtil.chooseFolder(this, "Select a folder"); if (f != null) { textField.setText(f.toString()); } }
public void actionPerformed(ActionEvent e) { File f = UIUtil.chooseFolder(FolderGroupPanel.this, "Folder for Ontology Repository"); if (f != null) { physicalLocationField.setText(f.getPath()); fireListeners(); } } });
JButton browse = new JButton("Browse"); browse.addActionListener(e -> { File f = UIUtil.chooseFolder(FolderGroupPanel.this, "Folder for Ontology Repository"); if (f != null) { physicalLocationField.setText(f.getPath());
protected void setDefaultLocalBase() { File folder = UIUtil.chooseFolder(this, "Please select a folder"); if (folder != null) { locationBase = folder; Preferences prefs = PreferencesManager.getInstance().getApplicationPreferences(ProtegeOWL.ID); prefs.putString(DEFAULT_LOCAL_BASE_KEY, locationBase.toString()); updateLocationField(); } }
JButton browse = new JButton("Browse"); browse.addActionListener(e -> { File f = UIUtil.chooseFolder(FolderGroupPanel.this, "Folder for Ontology Repository"); if (f != null) { physicalLocationField.setText(f.getPath());
protected void setDefaultLocalBase() { File folder = UIUtil.chooseFolder(this, "Please select a folder"); if (folder != null) { locationBase = folder; Preferences prefs = PreferencesManager.getInstance().getApplicationPreferences(ProtegeOWL.ID); prefs.putString(DEFAULT_LOCAL_BASE_KEY, locationBase.toString()); updateLocationField(); } }
protected void setDefaultLocalBase() { File folder = UIUtil.chooseFolder(this, "Please select a folder"); if (folder != null) { locationBase = folder; Preferences prefs = PreferencesManager.getInstance().getApplicationPreferences(ProtegeOWL.ID); prefs.putString(DEFAULT_LOCAL_BASE_KEY, locationBase.toString()); updateLocationField(); } }
public static GatherOntologiesPanel showDialog(OWLEditorKit owlEditorKit) { GatherOntologiesPanel panel = new GatherOntologiesPanel(owlEditorKit); panel.setPreferredSize(new Dimension(600, 400)); int ret = JOptionPane.showConfirmDialog(null, panel, "Gather ontologies", JOptionPane.OK_CANCEL_OPTION, JOptionPane.PLAIN_MESSAGE); if (ret != JOptionPane.OK_OPTION) { return null; } File file = UIUtil.chooseFolder(owlEditorKit.getWorkspace(), "Select folder to save the ontologies to"); if (file == null) { return null; } panel.setSaveLocation(file); return panel; } }
protected void setDefaultLocalBase() { File folder = UIUtil.chooseFolder(this, "Please select a folder"); if (folder != null) { locationBase = folder; Preferences prefs = PreferencesManager.getInstance().getApplicationPreferences(ProtegeOWL.ID); prefs.putString(DEFAULT_LOCAL_BASE_KEY, locationBase.toString()); updateLocationField(); } }
public static GatherOntologiesPanel showDialog(OWLEditorKit owlEditorKit) { GatherOntologiesPanel panel = new GatherOntologiesPanel(owlEditorKit); panel.setPreferredSize(new Dimension(600, 400)); int ret = JOptionPane.showConfirmDialog(null, panel, "Gather ontologies", JOptionPane.OK_CANCEL_OPTION, JOptionPane.PLAIN_MESSAGE); if (ret != JOptionPane.OK_OPTION) { return null; } File file = UIUtil.chooseFolder(owlEditorKit.getWorkspace(), "Select folder to save the ontologies to"); if (file == null) { return null; } panel.setSaveLocation(file); return panel; } }
public static GatherOntologiesPanel showDialog(OWLEditorKit owlEditorKit) { GatherOntologiesPanel panel = new GatherOntologiesPanel(owlEditorKit); panel.setPreferredSize(new Dimension(600, 400)); int ret = JOptionPane.showConfirmDialog(null, panel, "Gather ontologies", JOptionPane.OK_CANCEL_OPTION, JOptionPane.PLAIN_MESSAGE); if (ret != JOptionPane.OK_OPTION) { return null; } File file = UIUtil.chooseFolder(owlEditorKit.getWorkspace(), "Select folder to save the ontologies to"); if (file == null) { return null; } panel.setSaveLocation(file); return panel; } }
public static GatherOntologiesPanel showDialog(OWLEditorKit owlEditorKit) { GatherOntologiesPanel panel = new GatherOntologiesPanel(owlEditorKit); panel.setPreferredSize(new Dimension(600, 400)); int ret = JOptionPane.showConfirmDialog(null, panel, "Gather ontologies", JOptionPane.OK_CANCEL_OPTION, JOptionPane.PLAIN_MESSAGE); if (ret != JOptionPane.OK_OPTION) { return null; } File file = UIUtil.chooseFolder(owlEditorKit.getWorkspace(), "Select folder to save the ontologies to"); if (file == null) { return null; } panel.setSaveLocation(file); return panel; } }