AS3 classes tree reload fix

This commit is contained in:
Jindra Petk
2013-06-29 22:45:59 +02:00
parent 2ba887a929
commit 42e17cb467
2 changed files with 10 additions and 6 deletions

View File

@@ -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);
}

View File

@@ -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();