mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-11 14:22:12 +00:00
do not recreate tree model every time
This commit is contained in:
@@ -835,7 +835,7 @@ public class ActionPanel extends JPanel implements ActionListener, SearchListene
|
||||
@Override
|
||||
public void updateSearchPos(ActionSearchResult item) {
|
||||
TagTreeModel ttm = (TagTreeModel) mainPanel.tagTree.getModel();
|
||||
TreePath tp = ttm.getTagPath(item.src);
|
||||
TreePath tp = ttm.getTreePath(item.src);
|
||||
mainPanel.tagTree.setSelectionPath(tp);
|
||||
mainPanel.tagTree.scrollPathToVisible(tp);
|
||||
decompiledEditor.setCaretPosition(0);
|
||||
|
||||
Reference in New Issue
Block a user