/** * This constructs a primitive command to remove a collection of values from the specified feature of the owner. */ public RemoveCommand(EditingDomain domain, EObject owner, EStructuralFeature feature, Collection<?> collection) { super(domain, LABEL, DESCRIPTION); // Initialize all the fields from the command parameter. // this.owner = owner; this.feature = feature; this.collection = collection == null ? null : new ArrayList<Object>(collection); ownerList = getOwnerList(this.owner, feature); }