#448 Go to document class is not working: fixed

This commit is contained in:
Honfika
2013-12-25 23:22:18 +01:00
parent 796af3f207
commit eebcbb3dc0
7 changed files with 13 additions and 7 deletions

View File

@@ -278,6 +278,7 @@ public class LoadFromMemoryFrame extends AppFrame implements ActionListener {
return null;
}
@Override
public boolean isCellEditable(int rowIndex, int columnIndex) {
return false;
}

View File

@@ -37,6 +37,7 @@ public class SWFRoot implements TreeNode {
this.list = list;
}
@Override
public SWF getSwf() {
return swf;
}

View File

@@ -225,7 +225,7 @@ public class TagTreeModel implements TreeModel {
if (obj == it) {
return newPath;
}
}
}
if (n instanceof TagNode) {
TagNode nd = (TagNode) n;
if (nd.tag == obj) {

View File

@@ -295,7 +295,7 @@ public class ABCPanel extends JPanel implements ItemListener, ActionListener, Fr
public void switchAbc(int index) {
listIndex = index;
classTree.setDoABCTags(list, swf);
classTree.setSwf(swf);
if (index != -1) {
this.abc = list.get(index).getABC();

View File

@@ -95,11 +95,13 @@ public final class ClassesListTree extends JTree implements TreeSelectionListene
setModel(null);
}
public void setDoABCTags(List<ABCContainerTag> list, SWF swf) {
this.swf = swf;
ClassesListTreeModel model = new ClassesListTreeModel(swf);
this.swf.classTreeModel = model;
setModel(model);
public void setSwf(SWF swf) {
if (swf != this.swf) {
this.swf = swf;
ClassesListTreeModel model = new ClassesListTreeModel(swf);
this.swf.classTreeModel = model;
setModel(model);
}
}
public void applyFilter(String filter) {

View File

@@ -42,6 +42,7 @@ public class TreeElement implements TreeNode {
leafs = new TreeMap<>();
}
@Override
public SWF getSwf() {
return swf;
}

View File

@@ -69,6 +69,7 @@ public class Tag implements NeedsCharacters, Exportable, ContainerItem {
return id;
}
@Override
public SWF getSwf() {
return swf;
}