mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-25 09:40:49 +00:00
AS3 pcode search improvements
This commit is contained in:
@@ -1249,10 +1249,20 @@ public class ABCPanel extends JPanel implements ItemListener, SearchListener<ABC
|
||||
setAbc(pack.abc);
|
||||
decompiledTextArea.setScript(pack, false);
|
||||
hilightScript(pack);
|
||||
|
||||
boolean pcode = item.isPcode();
|
||||
if (pcode) {
|
||||
decompiledTextArea.gotoTrait(item.getTraitId());
|
||||
}
|
||||
|
||||
decompiledTextArea.setCaretPosition(0);
|
||||
|
||||
View.execInEventDispatchLater(() -> {
|
||||
searchPanel.showQuickFindDialog(decompiledTextArea);
|
||||
if (pcode) {
|
||||
searchPanel.showQuickFindDialog(detailPanel.methodTraitPanel.methodCodePanel.getSourceTextArea());
|
||||
} else {
|
||||
searchPanel.showQuickFindDialog(decompiledTextArea);
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user