performance fixes

This commit is contained in:
2015-03-20 14:39:00 +01:00
parent 72b30e17e8
commit d5fb45fd54
8 changed files with 30 additions and 23 deletions
@@ -804,7 +804,7 @@ public class ABCPanel extends JPanel implements ItemListener, ActionListener, Se
try {
String oldSp = null;
List<ScriptPack> packs = abc.script_info.get(oldIndex).getPacks(abc, oldIndex);
List<ScriptPack> packs = abc.script_info.get(oldIndex).getPacks(abc, oldIndex, null);
if (!packs.isEmpty()) {
oldSp = packs.get(0).getClassPath().toString();
}
@@ -81,7 +81,8 @@ public class ClassesListTreeModel extends AS3ClassTreeItem implements TreeModel
}
}
AS3Package pkg = ensurePackage(item.getClassPath().packageStr);
String packageStr = item.getClassPath().packageStr;
AS3Package pkg = ensurePackage(packageStr);
pkg.addScriptPack(item);
}
}