do not recreate tree model every time

This commit is contained in:
honfika@gmail.com
2015-03-07 14:38:26 +01:00
parent 99ec0a592c
commit 3c995f42e3
21 changed files with 625 additions and 145 deletions

View File

@@ -278,7 +278,7 @@ public final class SWF implements SWFContainerItem, Timelined {
@Internal
public SWFBundle bundle;
@Internal
private Timeline timeline;
@@ -865,6 +865,15 @@ public final class SWF implements SWFContainerItem, Timelined {
return this;
}
public SWF getRootSwf() {
SWF result = this;
while (result.binaryData != null) {
result = result.binaryData.getSwf();
}
return result;
}
public String getFile() {
return file;
}