public void actionPerformed(ActionEvent e) { try { OWLReasonerManager reasonerManager = getOWLModelManager().getOWLReasonerManager(); ReasonerStatus status = reasonerManager.getReasonerStatus(); if (status != ReasonerStatus.INITIALIZED && status != ReasonerStatus.OUT_OF_SYNC) { ReasonerUtilities.warnUserIfReasonerIsNotConfigured(getOWLWorkspace(), reasonerManager); return; } final ExportInferredOntologyWizard wizard = new ExportInferredOntologyWizard(getOWLEditorKit()); int ret = wizard.showModalDialog(); if (ret != Wizard.FINISH_RETURN_CODE) { return; } new Thread(new ExportTask(wizard), "Export Inferred Axioms").start(); } catch (OWLOntologyCreationException e1) { JOptionPane.showMessageDialog(getWorkspace(), "Could not create ontology:\n" + e1.getMessage(), "Error", JOptionPane.ERROR_MESSAGE); } }
public void actionPerformed(ActionEvent e) { try { OWLReasonerManager reasonerManager = getOWLModelManager().getOWLReasonerManager(); ReasonerStatus status = reasonerManager.getReasonerStatus(); if (status != ReasonerStatus.INITIALIZED && status != ReasonerStatus.OUT_OF_SYNC) { ReasonerUtilities.warnUserIfReasonerIsNotConfigured(getOWLWorkspace(), reasonerManager); return; } final ExportInferredOntologyWizard wizard = new ExportInferredOntologyWizard(getOWLEditorKit()); int ret = wizard.showModalDialog(); if (ret != Wizard.FINISH_RETURN_CODE) { return; } new Thread(new ExportTask(wizard), "Export Inferred Axioms").start(); } catch (OWLOntologyCreationException e1) { JOptionPane.showMessageDialog(getWorkspace(), "Could not create ontology:\n" + e1.getMessage(), "Error", JOptionPane.ERROR_MESSAGE); } }
public void actionPerformed(ActionEvent e) { try { OWLReasonerManager reasonerManager = getOWLModelManager().getOWLReasonerManager(); ReasonerStatus status = reasonerManager.getReasonerStatus(); if (status != ReasonerStatus.INITIALIZED && status != ReasonerStatus.OUT_OF_SYNC) { ReasonerUtilities.warnUserIfReasonerIsNotConfigured(getOWLWorkspace(), reasonerManager); return; } final ExportInferredOntologyWizard wizard = new ExportInferredOntologyWizard(getOWLEditorKit()); int ret = wizard.showModalDialog(); if (ret != Wizard.FINISH_RETURN_CODE) { return; } new Thread(new ExportTask(wizard), "Export Inferred Axioms").start(); } catch (OWLOntologyCreationException e1) { JOptionPane.showMessageDialog(getWorkspace(), "Could not create ontology:\n" + e1.getMessage(), "Error", JOptionPane.ERROR_MESSAGE); } }
public void actionPerformed(ActionEvent e) { try { OWLReasonerManager reasonerManager = getOWLModelManager().getOWLReasonerManager(); ReasonerStatus status = reasonerManager.getReasonerStatus(); if (status != ReasonerStatus.INITIALIZED && status != ReasonerStatus.OUT_OF_SYNC) { ReasonerUtilities.warnUserIfReasonerIsNotConfigured(getOWLWorkspace(), reasonerManager); return; } final ExportInferredOntologyWizard wizard = new ExportInferredOntologyWizard(getOWLEditorKit()); int ret = wizard.showModalDialog(); if (ret != Wizard.FINISH_RETURN_CODE) { return; } new Thread(new ExportTask(wizard), "Export Inferred Axioms").start(); } catch (OWLOntologyCreationException e1) { JOptionPane.showMessageDialog(getWorkspace(), "Could not create ontology:\n" + e1.getMessage(), "Error", JOptionPane.ERROR_MESSAGE); } }
try { OWLReasonerManager reasonerManager = getOWLModelManager().getOWLReasonerManager(); ReasonerUtilities.warnUserIfReasonerIsNotConfigured(this, reasonerManager);