/** * This is a convenience method that creates a <code>CommandParameter</code> * for a given parent feature and child object. */ protected CommandParameter createChildParameter(Object feature, Object child) { return new CommandParameter(null, feature, child); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ protected CommandParameter createChildParameter ( Object feature, Object child ) { return new CommandParameter ( null, feature, child ); }
/** * This is a convenience method for creating <code>CommandParameter</code>s * for a given parent feature and child object. */ protected CommandParameter createChildParameter(EReference feature, XSDConcreteComponent child) { return new CommandParameter(null, feature, child); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ protected CommandParameter createChildParameter ( Object feature, Object child ) { return new CommandParameter ( null, feature, child ); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ protected CommandParameter createChildParameter ( Object feature, Object child ) { return new CommandParameter ( null, feature, child ); }
/** * This creates a command to insert a collection of values at a particular index in the specified feature of the owner. * The feature will often be null because the domain will deduce it. */ public static Command create(EditingDomain domain, Object owner, Object feature, Collection<?> collection, int index) { return domain.createCommand(AddCommand.class, new CommandParameter(owner, feature, collection, index)); }
/** * This creates a command that creates a new child mappings for the given mapping * by attempting to match by name input children with output children. */ public static Command create(MappingDomain domain, Mapping mapping) { return domain.createCommand(NameMatchMappingCommand.class, new CommandParameter(mapping)); }
/** * This returns a command that creates a new child of some appropriate type. */ public static Command create(EditingDomain domain, Object object) { return domain.createCommand(CreateChildCommand.class, new CommandParameter(object)); }
/** * This creates a command to add a collection of values to the specified feature of the owner. * The feature will often be null because the domain will deduce it. */ public static Command create(EditingDomain domain, Object owner, Object feature, Collection<?> collection) { return domain.createCommand(AddCommand.class, new CommandParameter(owner, feature, collection, CommandParameter.NO_INDEX)); }
/** * This creates a command that will create and object for copying the given object */ public static Command create(EditingDomain domain, Object owner, CopyCommand.Helper copyHelper) { return domain.createCommand(CreateCopyCommand.class, new CommandParameter(owner, null, copyHelper)); }
/** * This creates a command that deletes the objects in the given collection. */ public static Command create(EditingDomain domain, final Collection<?> collection) { return domain.createCommand(DeleteCommand.class, new CommandParameter(null, null, collection)); }
/** * This creates a command to remove a collection of values from the specified feature of the owner. */ public static Command create(final EditingDomain domain, final Object owner, final Object feature, final Collection<?> collection) { return domain.createCommand(RemoveCommand.class, new CommandParameter(owner, feature, collection)); }
/** * This creates a command to move particular value to a particular index in the specified feature of the owner. * The feature will often be null because the domain will deduce it. */ public static Command create(EditingDomain domain, Object owner, Object feature, Object value, int index) { return domain.createCommand(MoveCommand.class, new CommandParameter(owner, feature, value, index)); }
/** * This creates a command that creates a new child mappings for the given mapping * by attempting to match by name input children with output children. */ public static Command create(MappingDomain domain, Mapping mapping) { return domain.createCommand(NameMatchMappingCommand.class, new CommandParameter(mapping)); }
/** * This creates a command that creates a new mapping involving the given domain's collection of input and output objects. */ public static Command create(MappingDomain domain, Collection<?> collection) { return domain.createCommand (CreateMappingCommand.class, new CommandParameter(domain.getMappingRoot(), null, collection)); }
/** * This creates a command that removes the mapping from the mapping root. */ public static Command create(MappingDomain domain) { return domain.createCommand (RestoreInitialStateCommand.class, new CommandParameter(domain.getMappingRoot(), null, null)); }
/** * This creates a command that removes the mappings in the collection from the mapping root. */ public static Command create(MappingDomain domain, Collection<?> collection) { return domain.createCommand (RemoveMappingCommand.class, new CommandParameter(domain.getMappingRoot(), null, collection)); }
/** * This creates a command that creates a new mapping involving the given domain's collection of input and output objects. */ public static Command create(MappingDomain domain, Collection<?> collection) { return domain.createCommand (CreateMappingCommand.class, new CommandParameter(domain.getMappingRoot(), null, collection)); }
/** * This creates a command that adds the new mappings in the collection into the appropriate place in the mapping root's. */ public static Command create(MappingDomain domain, Collection<?> collection) { return domain.createCommand (AddMappingCommand.class, new CommandParameter(domain.getMappingRoot(), null, collection)); }
/** * This creates a command that copies the given object. */ public static Command create(EditingDomain domain, Object owner) { return domain.createCommand(CopyCommand.class, new CommandParameter(owner, null, new Helper())); }