public void actionPerformed(ActionEvent e) { try { FileUtils.showFile(new File(physicalURI)); } catch (IOException ex) { logger.error("An error occurred when attempting to show a file in the operating system.", ex); } } }
@Override public void activate(Component component, MouseEvent event) { try { FileUtils.showFile(file); } catch (IOException e) { logger.error("Could not activate file link.", e.getMessage(), e); } }
public void actionPerformed(ActionEvent e) { try { FileUtils.showFile(new File(physicalURI)); } catch (IOException ex) { logger.error(ex); } } }
public void actionPerformed(ActionEvent e) { try { FileUtils.showFile(new File(physicalURI)); } catch (IOException ex) { logger.error(ex); } } }
public void actionPerformed(ActionEvent e) { try { FileUtils.showFile(new File(physicalURI)); } catch (IOException ex) { logger.error("An error occurred when attempting to show a file in the operating system.", ex); } } }
@Override public void activate(Component component, MouseEvent event) { try { FileUtils.showFile(file); } catch (IOException e) { logger.debug(e.getMessage(), e); } }
@Override public void activate(Component component, MouseEvent event) { try { FileUtils.showFile(file); } catch (IOException e) { logger.error("Could not activate file link.", e.getMessage(), e); } }
public static void showLogFile() { try { String userHome = System.getProperty("user.home"); Path logFilePath = Paths.get(userHome, ".Protege", "logs", "protege.log"); FileUtils.showFile(logFilePath.toFile()); } catch (IOException e) { JOptionPane.showMessageDialog(null, "An error occurred whilst trying to show the log file: " + e.getMessage(), "Error", JOptionPane.ERROR_MESSAGE); logger.error("An error occurred whilst trying to show a file in the OS: {}", e.getMessage(), e); } } }
private void handleShowFile(OWLOntology ont){ URI physicalURI = owlEditorKit.getOWLModelManager().getOntologyPhysicalURI(ont); if (!physicalURI.getScheme().equals("file")) { throw new IllegalArgumentException("URI must be a file URI!"); } try { FileUtils.showFile(new File(physicalURI)); } catch (IOException ex) { logger.error(ex); } }
private void handleShowFile(OWLOntology ont){ URI physicalURI = owlEditorKit.getOWLModelManager().getOntologyPhysicalURI(ont); if (!UIUtil.isLocalFile(physicalURI)) { throw new IllegalArgumentException("URI must be a file URI!"); } try { FileUtils.showFile(new File(physicalURI)); } catch (IOException ex) { logger.error(ex); } }
private void handleShowFile(){ if (ontologiesPanel.getSelectedValue() instanceof OntologyListItem) { OntologyListItem item = (OntologyListItem) ontologiesPanel.getSelectedValue(); OWLOntology ont = item.ont; URI physicalURI = owlEditorKit.getOWLModelManager().getOntologyPhysicalURI(ont); if (!UIUtil.isLocalFile(physicalURI)) { throw new IllegalArgumentException("URI must be a file URI!"); } try { FileUtils.showFile(new File(physicalURI)); } catch (IOException ex) { logger.error("An error occurred whilst attempting to show a file in the Operating System.", ex); } } }
private void handleShowFile(){ if (ontologiesPanel.getSelectedValue() instanceof OntologyListItem) { OntologyListItem item = (OntologyListItem) ontologiesPanel.getSelectedValue(); OWLOntology ont = item.ont; URI physicalURI = owlEditorKit.getOWLModelManager().getOntologyPhysicalURI(ont); if (!UIUtil.isLocalFile(physicalURI)) { throw new IllegalArgumentException("URI must be a file URI!"); } try { FileUtils.showFile(new File(physicalURI)); } catch (IOException ex) { logger.error("An error occurred whilst attempting to show a file in the Operating System.", ex); } } }