prepare for Issue #350 (Allow to open multiple SWF files into the same ffdec instance), some action commands moved to constants

This commit is contained in:
Honfika
2013-12-20 16:27:25 +01:00
parent 1516c7d0ad
commit 727d7a74e5
35 changed files with 660 additions and 828 deletions

View File

@@ -498,19 +498,21 @@ public class Helper {
try {
f.setAccessible(true);
Object v = f.get(obj);
if (v instanceof Collection) {
((Collection) v).clear();
}
if (v instanceof Component) {
if (((Component) v).getParent() != null) {
((Component) v).getParent().remove((Component) v);
if (v != null) {
if (v instanceof Collection) {
((Collection) v).clear();
}
if (v instanceof Component) {
if (((Component) v).getParent() != null) {
((Component) v).getParent().remove((Component) v);
}
}
if (v instanceof Freed) {
((Freed) v).free();
}
f.set(obj, null);
}
if (v instanceof Freed) {
((Freed) v).free();
}
f.set(obj, null);
} catch (SecurityException | IllegalArgumentException | IllegalAccessException ex) {
} catch (UnsupportedOperationException | SecurityException | IllegalArgumentException | IllegalAccessException ex) {
}
}
}