mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-25 04:30:45 +00:00
ABCExplorer - scroll to visible
This commit is contained in:
@@ -330,8 +330,8 @@ public class ABCExplorerDialog extends AppDialog {
|
||||
Object root = model.getRoot();
|
||||
Object parent = root;
|
||||
|
||||
Object treePath[] = new Object[parts.length + 1];
|
||||
treePath[0] = root;
|
||||
Object treePathObjects[] = new Object[parts.length + 1];
|
||||
treePathObjects[0] = root;
|
||||
|
||||
loopp:for (int p = 0; p < parts.length; p++) {
|
||||
String part = parts[p];
|
||||
@@ -353,14 +353,16 @@ public class ABCExplorerDialog extends AppDialog {
|
||||
key = sv.getTitle();
|
||||
}
|
||||
if (key.equals(part)) {
|
||||
treePath[1 + p] = child;
|
||||
treePathObjects[1 + p] = child;
|
||||
parent = child;
|
||||
continue loopp;
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
tree.setSelectionPath(new TreePath(treePath));
|
||||
TreePath treePath = new TreePath(treePathObjects);
|
||||
tree.setSelectionPath(treePath);
|
||||
tree.scrollPathToVisible(treePath);
|
||||
}
|
||||
|
||||
public void selectScriptInfo(int scriptIndex) {
|
||||
|
||||
Reference in New Issue
Block a user