Do not allow removing compound items

This commit is contained in:
Jindra Petřík
2023-09-28 11:05:44 +02:00
parent 997c00ac33
commit 58b7341b59

View File

@@ -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;
}