public final class CommandFactory
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
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.