Added: Disable AS1/2/3 direct editation when editing P-code

This commit is contained in:
Jindra Petřík
2025-05-31 12:52:53 +02:00
parent f88f7ced70
commit bc85daca85
6 changed files with 15 additions and 2 deletions

View File

@@ -216,6 +216,12 @@ public class ABCPanel extends JPanel implements ItemListener, SearchListener<Scr
public ScriptPack getPack() {
return decompiledTextArea.getScriptLeaf();
}
public void setDecompiledEditEnabled(boolean value) {
decompiledTextArea.setEnabled(value);
editDecompiledButton.setEnabled(value);
toolbarPanel.setEnabled(value);
}
public List<ABCSearchResult> search(final Openable openable, final String txt, boolean ignoreCase, boolean regexp, boolean pcode, CancellableWorker<Void> worker, List<ScriptPack> scope) {
if (txt != null && !txt.isEmpty()) {