/** * 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(); } } }