mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-05-31 11:04:51 +00:00
AS3 classes tree reload fix
This commit is contained in:
@@ -203,13 +203,10 @@ public class ABCPanel extends JPanel implements ItemListener, ActionListener {
|
||||
|
||||
public void switchAbc(int index) {
|
||||
listIndex = index;
|
||||
if (index == -1) {
|
||||
classTree.setDoABCTags(list);
|
||||
} else {
|
||||
List<ABCContainerTag> oneList = new ArrayList<>();
|
||||
oneList.add(list.get(index));
|
||||
classTree.setDoABCTags(list);
|
||||
|
||||
if (index != -1) {
|
||||
this.abc = list.get(index).getABC();
|
||||
classTree.setDoABCTags(oneList);
|
||||
}
|
||||
updateConstList();
|
||||
}
|
||||
@@ -480,6 +477,8 @@ public class ABCPanel extends JPanel implements ItemListener, ActionListener {
|
||||
public void hilightScript(ScriptPack pack) {
|
||||
TagTreeModel ttm = (TagTreeModel) Main.mainFrame.tagTree.getModel();
|
||||
TreePath tp = ttm.getTagPath(pack);
|
||||
if (tp == null) {
|
||||
}
|
||||
Main.mainFrame.tagTree.setSelectionPath(tp);
|
||||
Main.mainFrame.tagTree.scrollPathToVisible(tp);
|
||||
}
|
||||
|
||||
@@ -1520,6 +1520,7 @@ public class MainFrame extends JFrame implements ActionListener, TreeSelectionLi
|
||||
abcPanel.reload();
|
||||
}
|
||||
reload(true);
|
||||
doFilter();
|
||||
break;
|
||||
case "ASSOCIATE":
|
||||
if (miAssociate.getState() == Main.isAssociated()) {
|
||||
@@ -1977,6 +1978,7 @@ public class MainFrame extends JFrame implements ActionListener, TreeSelectionLi
|
||||
Main.stopWork();
|
||||
JOptionPane.showMessageDialog(null, "Control flow restored");
|
||||
abcPanel.reload();
|
||||
doFilter();
|
||||
return true;
|
||||
}
|
||||
}.execute();
|
||||
@@ -2055,6 +2057,7 @@ public class MainFrame extends JFrame implements ActionListener, TreeSelectionLi
|
||||
JOptionPane.showMessageDialog(null, "Deobfuscation complete");
|
||||
clearCache();
|
||||
abcPanel.reload();
|
||||
doFilter();
|
||||
return true;
|
||||
}
|
||||
}.execute();
|
||||
@@ -2084,6 +2087,7 @@ public class MainFrame extends JFrame implements ActionListener, TreeSelectionLi
|
||||
Main.stopWork();
|
||||
JOptionPane.showMessageDialog(null, "Traps removed: " + cnt);
|
||||
abcPanel.reload();
|
||||
doFilter();
|
||||
return true;
|
||||
}
|
||||
}.execute();
|
||||
@@ -2113,6 +2117,7 @@ public class MainFrame extends JFrame implements ActionListener, TreeSelectionLi
|
||||
Main.stopWork();
|
||||
JOptionPane.showMessageDialog(null, "Instructions removed: " + cnt);
|
||||
abcPanel.reload();
|
||||
doFilter();
|
||||
return true;
|
||||
}
|
||||
}.execute();
|
||||
|
||||
Reference in New Issue
Block a user