Fixed AS3 - empty P-code shown on clicking script

This commit is contained in:
Jindra Petřík
2023-01-22 22:15:04 +01:00
parent d199949ed1
commit fb76fd94a9
3 changed files with 6 additions and 1 deletions
@@ -226,7 +226,7 @@ public class DecompiledEditorPane extends DebuggableEditorPane implements CaretL
}
abcPanel.detailPanel.showCard(DetailPanel.METHOD_GETTER_SETTER_TRAIT_CARD, trait, traitIndex, abc);
MethodCodePanel methodCodePanel = abcPanel.detailPanel.methodTraitPanel.methodCodePanel;
if (reset || (methodCodePanel.getMethodIndex()!= methodIndex)) {
if (reset || (methodCodePanel.getMethodIndex()!= methodIndex) || (methodCodePanel.getABC() != abc)) {
methodCodePanel.setMethod(scriptName, methodIndex, bi, abc, name, trait, script.scriptIndex);
abcPanel.detailPanel.setEditMode(false);
this.isStatic = isStatic;
@@ -55,6 +55,10 @@ public class MethodCodePanel extends JPanel {
private final DocsPanel docsPanel;
public ABC getABC() {
return sourceTextArea.abc;
}
public void refreshMarkers() {
sourceTextArea.refreshMarkers();
}