ABCExplorer - update when ABC changes

This commit is contained in:
Jindra Petřík
2023-10-01 18:21:38 +02:00
parent 7f6a1dfd87
commit 04d526ddeb
7 changed files with 602 additions and 548 deletions
File diff suppressed because it is too large Load Diff
@@ -1874,12 +1874,14 @@ public class ABCPanel extends JPanel implements ItemListener, SearchListener<Scr
abc.pack();
}
((Tag) abc.parentTag).setModified(true);
abc.fireChanged();
}
});
} else {
traits.traits.remove(traitIndex);
((Tag) abc.parentTag).setModified(true);
reload();
abc.fireChanged();
}
}
@@ -1992,8 +1994,9 @@ public class ABCPanel extends JPanel implements ItemListener, SearchListener<Scr
decompiledTextArea.gotoTrait(traitId);
decompiledTextArea.removeScriptListener(this);
}
});
});
reload();
abc.fireChanged();
}
}
@@ -350,6 +350,7 @@ public class ASMSourceEditorPane extends DebuggableEditorPane implements CaretLi
ViewMessages.showMessageDialog(Main.getDefaultMessagesComponent(), (ex.text + " on line " + ex.line), Main.getMainFrame().translate("error"), JOptionPane.ERROR_MESSAGE);
return false;
}
abc.fireChanged();
return true;
}
@@ -124,6 +124,7 @@ public class ClassTraitDetailPanel extends JPanel implements TraitDetail {
abc.refreshMultinameNamespaceSuffixes();
((Tag) abc.parentTag).setModified(true);
abc.fireChanged();
return true;
}
@@ -127,6 +127,7 @@ public class SlotConstTraitDetailPanel extends JPanel implements TraitDetail {
abc.refreshMultinameNamespaceSuffixes();
((Tag) abc.parentTag).setModified(true);
abc.fireChanged();
return true;
}