AS3 pcode search improvements

This commit is contained in:
2016-12-27 19:52:49 +01:00
parent 1f84a87b84
commit 93082c1eb3
51 changed files with 276 additions and 154 deletions
@@ -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);
}
});
}