/** * This constructs a primitive command to set the owner's feature to the specified value at the given index. */ public SetCommand(EditingDomain domain, EObject owner, EStructuralFeature feature, Object value, int index) { super(domain, LABEL, DESCRIPTION); // Initialize all the fields from the command parameter. // this.owner = owner; this.feature = feature; this.value = value; this.index = index; if (index != CommandParameter.NO_INDEX) { ownerList = getOwnerList(owner, feature); } }