public final class CommandFactory
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static Command |
createAddResourceContentsCommand(Resource resource,
java.util.Collection<EObject> content)
This method creates a command to add a collection of element to a resource
|
static Command |
createAddResourceContentsCommand(Resource resource,
EObject eObject)
This method creates a command to add an EObject to a resource
|
static Command |
createSetResourceContentsCommand(Resource resource,
java.util.Collection<EObject> content)
This method creates a command to set a collection of element to a resource
|
static Command |
createSetResourceContentsCommand(Resource resource,
EObject eObject)
This method creates a command to set an EObject to a resource
|
public static Command createSetResourceContentsCommand(Resource resource,
java.util.Collection<EObject> content)
resource - the resource to setcontent - a collection of EObject to set as the content of the resource.public static Command createSetResourceContentsCommand(Resource resource,
EObject eObject)
resource - the resource to seteObject - an EObject to set as the content of the resource.public static Command createAddResourceContentsCommand(Resource resource,
java.util.Collection<EObject> content)
resource - the resource to addcontent - a collection of EObject to add to the content of the resource.public static Command createAddResourceContentsCommand(Resource resource,
EObject eObject)
resource - the resource to addeObject - an EObject to add to the content of the resource.