コード例 #1
0
 public void hilightScript(ScriptPack pack) {
   TagTreeModel ttm = (TagTreeModel) mainPanel.tagTree.getModel();
   final TreePath tp = ttm.getTreePath(pack);
   View.execInEventDispatchLater(
       () -> {
         mainPanel.tagTree.setSelectionPath(tp);
         mainPanel.tagTree.scrollPathToVisible(tp);
       });
 }
コード例 #2
0
  @Override
  public void updateSearchPos(ABCPanelSearchResult item) {
    ScriptPack pack = item.scriptPack;
    setAbc(pack.abc);
    decompiledTextArea.setScript(pack);
    hilightScript(pack);
    decompiledTextArea.setCaretPosition(0);

    View.execInEventDispatchLater(
        () -> {
          searchPanel.showQuickFindDialog(decompiledTextArea);
        });
  }