Skip to content

Commit

Permalink
reload ExplanationManager whenever a new explanation or the preferenc…
Browse files Browse the repository at this point in the history
…es are opened
  • Loading branch information
stefborg committed May 27, 2024
1 parent f66e756 commit feca297
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import java.util.Collection;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
import java.util.TreeMap;

import javax.swing.JDialog;
Expand Down Expand Up @@ -122,6 +121,7 @@ public boolean hasExplanation(OWLAxiom axiom) {
}

public void handleExplain(Frame owner, OWLAxiom axiom) {
reload();
final ExplanationDialog explanation = new ExplanationDialog(this, axiom);
openedExplanations.add(explanation);
JOptionPane op = new JOptionPane(explanation, JOptionPane.PLAIN_MESSAGE, JOptionPane.DEFAULT_OPTION);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ public void initialise() throws Exception {
add(panel, BorderLayout.NORTH);
addDefaultExplanationServiceComponent(panel);
addInstalledExplanationServicesComponent(panel);
getOWLEditorKit().getModelManager().getExplanationManager().reload();
loadFrom(ExplanationPreferences.create().load());
}

Expand Down

0 comments on commit feca297

Please sign in to comment.