AS3 - Remove trait which is outside class

This commit is contained in:
Jindra Petřík
2021-03-13 22:50:29 +01:00
parent dba68c582c
commit dced2be446
3 changed files with 73 additions and 15 deletions

View File

@@ -2837,6 +2837,28 @@ public final class MainPanel extends JPanel implements TreeSelectionListener, Se
refreshTree(new SWF[0]);
}
public void treeOperation(Runnable runnable) {
TreeItem treeItem = tagTree.getCurrentTreeItem();
tagTree.clearSelection();
runnable.run();
clear();
showCard(CARDEMPTYPANEL);
tagTree.updateSwfs(new SWF[0]);
if (treeItem != null) {
SWF swf = treeItem.getSwf();
if (swf != null) {
SWF treeItemSwf = swf.getRootSwf();
if (this.swfs.contains(treeItemSwf.swfList)) {
setTagTreeSelectedNode(treeItem);
}
}
}
reload(true);
}
public void refreshTree(SWF swf) {
refreshTree(new SWF[]{swf});
}