ABCExplorer - show inline methods

This commit is contained in:
Jindra Petřík
2023-10-01 08:06:11 +02:00
parent 401ba59e41
commit 2a93e6b133
3 changed files with 67 additions and 8 deletions

View File

@@ -2445,6 +2445,19 @@ public final class MainPanel extends JPanel implements TreeSelectionListener, Se
}
}
public void gotoScriptMethod(SWF swf, String scriptName, int methodIndex) {
abcPanel.decompiledTextArea.addScriptListener(new Runnable() {
@Override
public void run() {
if (abcPanel != null) {
abcPanel.decompiledTextArea.removeScriptListener(this);
abcPanel.decompiledTextArea.gotoMethod(methodIndex);
}
}
});
gotoScriptName(swf, scriptName);
}
public void gotoScriptTrait(SWF swf, String scriptName, int classIndex, int traitIndex) {
abcPanel.decompiledTextArea.addScriptListener(new Runnable() {
@Override