From 58b7341b59f30b69686e646a5b0ab2b52d6cde18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=C5=99=C3=ADk?= Date: Thu, 28 Sep 2023 11:05:44 +0200 Subject: [PATCH] Do not allow removing compound items --- .../com/jpexs/decompiler/flash/timeline/AS3Package.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/timeline/AS3Package.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/timeline/AS3Package.java index a9cf87db8..28d66b8e1 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/timeline/AS3Package.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/timeline/AS3Package.java @@ -54,8 +54,10 @@ public class AS3Package extends AS3ClassTreeItem { private ABC abc; private ScriptPack compoundInitializerPack = null; + + private boolean partOfCompoundScript; - public AS3Package(String packageName, Openable openable, boolean flat, boolean defaultPackage, ABC abc, Integer compoundScriptIndex) { + public AS3Package(String packageName, Openable openable, boolean flat, boolean defaultPackage, ABC abc, boolean partOfCompoundScript, Integer compoundScriptIndex) { super(packageName, "", null); this.flat = flat; this.openable = openable; @@ -63,8 +65,13 @@ public class AS3Package extends AS3ClassTreeItem { this.defaultPackage = defaultPackage; this.compoundScriptIndex = compoundScriptIndex; this.abc = abc; + this.partOfCompoundScript = partOfCompoundScript; } + public boolean isPartOfCompoundScript() { + return partOfCompoundScript; + } + public void setCompoundInitializerPack(ScriptPack compoundInitializerPack) { this.compoundInitializerPack = compoundInitializerPack; }