public void setCancelled() { taskLabel.setText("Cancelled. Waiting for reasoner to terminate..."); cancelledAction.setEnabled(false); owlEditorKit.getOWLModelManager().getOWLReasonerManager().killCurrentClassification(); }
public void setCancelled() { SwingUtilities.invokeLater(() -> { initWindow(); taskLabel .setText("Cancelled. Waiting for reasoner to terminate..."); cancelledAction.setEnabled(false); }); owlEditorKit.getOWLModelManager().getOWLReasonerManager() .killCurrentClassification(); }
public void setCancelled() { SwingUtilities.invokeLater(() -> { initWindow(); taskLabel .setText("Cancelled. Waiting for reasoner to terminate..."); cancelledAction.setEnabled(false); }); owlEditorKit.getOWLModelManager().getOWLReasonerManager() .killCurrentClassification(); }
public void setCancelled() { synchronized (this) { cancelled = true; running = false; } owlEditorKit.getOWLModelManager().getOWLReasonerManager().killCurrentClassification(); hideWindow(); }
/** * Invoked when an action occurs. */ public void actionPerformed(ActionEvent e) { ReasonerPreferences preferences = getOWLModelManager().getOWLReasonerManager().getReasonerPreferences(); Set<InferenceType> precompute; precompute = preferences.getPrecomputedInferences(); if (!getOWLModelManager().getOWLReasonerManager().classifyAsynchronously(precompute)) { Object[] options = {"OK", "Interrupt Current Reasoning Task"}; int ret = JOptionPane.showOptionDialog(null, "Reasoner initialization still in progress. New initialization can't be started", "Reasoner initialization in progress", JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE, null, options, options[0]); if (ret == 1) { getOWLModelManager().getOWLReasonerManager().killCurrentClassification(); } } }
/** * Invoked when an action occurs. */ public void actionPerformed(ActionEvent e) { ReasonerPreferences preferences = getOWLModelManager().getOWLReasonerManager().getReasonerPreferences(); Set<InferenceType> precompute; precompute = preferences.getPrecomputedInferences(); if (!getOWLModelManager().getOWLReasonerManager().classifyAsynchronously(precompute)) { Object[] options = {"OK", "Interrupt Current Reasoning Task"}; int ret = JOptionPane.showOptionDialog(null, "Reasoner initialization still in progress. New initialization can't be started", "Reasoner initialization in progress", JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE, null, options, options[0]); if (ret == 1) { getOWLModelManager().getOWLReasonerManager().killCurrentClassification(); } } }
/** * Invoked when an action occurs. */ public void actionPerformed(ActionEvent e) { ReasonerPreferences preferences = getOWLModelManager().getOWLReasonerManager().getReasonerPreferences(); Set<InferenceType> precompute; precompute = preferences.getPrecomputedInferences(); if (!getOWLModelManager().getOWLReasonerManager().classifyAsynchronously(precompute)) { Object[] options = {"OK", "Interrupt Current Reasoning Task"}; int ret = JOptionPane.showOptionDialog(null, "Reasoner initialization still in progress. New initialization can't be started", "Reasoner initialization in progress", JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE, null, options, options[0]); if (ret == 1) { getOWLModelManager().getOWLReasonerManager().killCurrentClassification(); } } }
/** * Invoked when an action occurs. */ public void actionPerformed(ActionEvent e) { ReasonerPreferences preferences = getOWLModelManager().getOWLReasonerManager().getReasonerPreferences(); Set<InferenceType> precompute; precompute = preferences.getPrecomputedInferences(); if (!getOWLModelManager().getOWLReasonerManager().classifyAsynchronously(precompute)) { Object[] options = {"OK", "Interrupt Current Reasoning Task"}; int ret = JOptionPane.showOptionDialog(null, "Reasoner initialization still in progress. New initialization can't be started", "Reasoner initialization in progress", JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE, null, options, options[0]); if (ret == 1) { getOWLModelManager().getOWLReasonerManager().killCurrentClassification(); } } }