public class UMLElementFactory
extends java.lang.Object
Some of the factory methods accept a map of requestParameters
,
whose keys can be any of the parameter names declared in the
EditRequestParameters
. The request parameter
values carry information used by the extensible commands to perform the model
editing operations. For example, the value of the
EditRequestParameters.PROPERTY_TYPE
parameter
is used by the commands to initialize the type of a new UML property when it
is created.
Constructor and Description |
---|
UMLElementFactory() |
Modifier and Type | Method and Description |
---|---|
static org.eclipse.emf.ecore.EObject |
createElement(org.eclipse.emf.ecore.EObject container,
org.eclipse.gmf.runtime.emf.type.core.IElementType typeToCreate,
org.eclipse.emf.ecore.EReference containmentFeature,
org.eclipse.core.runtime.IProgressMonitor progressMonitor)
Convenience method to create a new element of kind
container . |
static org.eclipse.emf.ecore.EObject |
createElement(org.eclipse.emf.ecore.EObject container,
org.eclipse.gmf.runtime.emf.type.core.IElementType typeToCreate,
org.eclipse.core.runtime.IProgressMonitor progressMonitor)
Convenience method to create a new element of kind
container . |
static org.eclipse.emf.ecore.EObject |
createElement(org.eclipse.emf.ecore.EObject container,
org.eclipse.gmf.runtime.emf.type.core.IElementType typeToCreate,
java.util.Map requestParameters,
org.eclipse.emf.ecore.EReference containmentFeature,
org.eclipse.core.runtime.IProgressMonitor progressMonitor)
Convenience method to create a new element of kind
container . |
static org.eclipse.emf.ecore.EObject |
createElement(org.eclipse.emf.ecore.EObject container,
org.eclipse.gmf.runtime.emf.type.core.IElementType typeToCreate,
java.util.Map requestParameters,
org.eclipse.core.runtime.IProgressMonitor progressMonitor)
Convenience method to create a new element of kind
container . |
static org.eclipse.emf.ecore.EObject |
createRelationship(org.eclipse.emf.ecore.EObject container,
org.eclipse.gmf.runtime.emf.type.core.IElementType typeToCreate,
org.eclipse.emf.ecore.EObject source,
org.eclipse.emf.ecore.EObject target,
org.eclipse.emf.ecore.EReference containmentFeature,
org.eclipse.core.runtime.IProgressMonitor progressMonitor)
Convenience method to create a new element of kind
container . |
static org.eclipse.emf.ecore.EObject |
createRelationship(org.eclipse.emf.ecore.EObject container,
org.eclipse.gmf.runtime.emf.type.core.IElementType typeToCreate,
org.eclipse.emf.ecore.EObject source,
org.eclipse.emf.ecore.EObject target,
org.eclipse.core.runtime.IProgressMonitor progressMonitor)
Convenience method to create a new element of kind
container . |
static org.eclipse.emf.ecore.EObject |
createRelationship(org.eclipse.emf.ecore.EObject container,
org.eclipse.gmf.runtime.emf.type.core.IElementType typeToCreate,
org.eclipse.emf.ecore.EObject source,
org.eclipse.emf.ecore.EObject target,
java.util.Map requestParameters,
org.eclipse.emf.ecore.EReference containmentFeature,
boolean prompt,
org.eclipse.core.runtime.IProgressMonitor progressMonitor)
Convenience method to create a new element of kind
container . |
static org.eclipse.emf.ecore.EObject |
createRelationship(org.eclipse.emf.ecore.EObject container,
org.eclipse.gmf.runtime.emf.type.core.IElementType typeToCreate,
org.eclipse.emf.ecore.EObject source,
org.eclipse.emf.ecore.EObject target,
java.util.Map requestParameters,
org.eclipse.emf.ecore.EReference containmentFeature,
org.eclipse.core.runtime.IProgressMonitor progressMonitor)
Convenience method to create a new element of kind
container . |
static org.eclipse.emf.ecore.EObject |
createRelationship(org.eclipse.emf.ecore.EObject container,
org.eclipse.gmf.runtime.emf.type.core.IElementType typeToCreate,
org.eclipse.emf.ecore.EObject source,
org.eclipse.emf.ecore.EObject target,
java.util.Map requestParameters,
org.eclipse.core.runtime.IProgressMonitor progressMonitor)
Convenience method to create a new element of kind
container . |
static boolean |
destroyElement(org.eclipse.emf.ecore.EObject element,
org.eclipse.core.runtime.IProgressMonitor monitor)
A convenience method that obtains a command to destroy the specified
element and also executes it.
|
static boolean |
destroyElement(org.eclipse.emf.ecore.EObject element,
java.util.Map parameters,
org.eclipse.core.runtime.IProgressMonitor monitor)
A convenience method that obtains a command to destroy the specified
element and also executes it.
|
static org.eclipse.gmf.runtime.common.core.command.ICommand |
getCreateElementCommand(org.eclipse.emf.ecore.EObject container,
org.eclipse.gmf.runtime.emf.type.core.IElementType typeToCreate)
Convenience method to get a command to create a new element of kind
container . |
static org.eclipse.gmf.runtime.common.core.command.ICommand |
getCreateElementCommand(org.eclipse.emf.ecore.EObject container,
org.eclipse.gmf.runtime.emf.type.core.IElementType typeToCreate,
org.eclipse.emf.ecore.EObject redefContextHint)
Convenience method to get a command to create a new element of kind
container . |
static org.eclipse.gmf.runtime.common.core.command.ICommand |
getCreateElementCommand(org.eclipse.emf.ecore.EObject container,
org.eclipse.gmf.runtime.emf.type.core.IElementType typeToCreate,
org.eclipse.emf.ecore.EReference containmentFeature)
Convenience method to get a command to create a new element of kind
container . |
static org.eclipse.gmf.runtime.common.core.command.ICommand |
getCreateElementCommand(org.eclipse.emf.ecore.EObject container,
org.eclipse.gmf.runtime.emf.type.core.IElementType typeToCreate,
java.util.Map requestParameters)
Convenience method to get a command to create a new element of kind
container . |
static org.eclipse.gmf.runtime.common.core.command.ICommand |
getCreateElementCommand(org.eclipse.emf.ecore.EObject container,
org.eclipse.gmf.runtime.emf.type.core.IElementType typeToCreate,
java.util.Map requestParameters,
org.eclipse.emf.ecore.EReference containmentFeature)
Convenience method to get a command to create a new element of kind
container . |
static org.eclipse.gmf.runtime.common.core.command.ICommand |
getCreateRelationshipCommand(org.eclipse.emf.ecore.EObject container,
org.eclipse.gmf.runtime.emf.type.core.IElementType typeToCreate,
org.eclipse.emf.ecore.EObject source,
org.eclipse.emf.ecore.EObject target)
Convenience method to get a command to create a new relationship of kind
container . |
static org.eclipse.gmf.runtime.common.core.command.ICommand |
getCreateRelationshipCommand(org.eclipse.emf.ecore.EObject container,
org.eclipse.gmf.runtime.emf.type.core.IElementType typeToCreate,
org.eclipse.emf.ecore.EObject source,
org.eclipse.emf.ecore.EObject target,
org.eclipse.emf.ecore.EReference containmentFeature)
Convenience method to get a command create a new relationship of kind
container . |
static org.eclipse.gmf.runtime.common.core.command.ICommand |
getCreateRelationshipCommand(org.eclipse.emf.ecore.EObject container,
org.eclipse.gmf.runtime.emf.type.core.IElementType typeToCreate,
org.eclipse.emf.ecore.EObject source,
org.eclipse.emf.ecore.EObject target,
java.util.Map requestParameters)
Convenience method to get a command to create a new element of kind
container . |
static org.eclipse.gmf.runtime.common.core.command.ICommand |
getCreateRelationshipCommand(org.eclipse.emf.ecore.EObject container,
org.eclipse.gmf.runtime.emf.type.core.IElementType typeToCreate,
org.eclipse.emf.ecore.EObject source,
org.eclipse.emf.ecore.EObject target,
java.util.Map requestParameters,
org.eclipse.emf.ecore.EReference containmentFeature)
Convenience method to get a command to create a new relationship of kind
container . |
static org.eclipse.gmf.runtime.common.core.command.ICommand |
getCreateRelationshipCommand(org.eclipse.emf.ecore.EObject container,
org.eclipse.gmf.runtime.emf.type.core.IElementType typeToCreate,
org.eclipse.emf.ecore.EObject source,
org.eclipse.emf.ecore.EObject target,
java.util.Map requestParameters,
org.eclipse.emf.ecore.EReference containmentFeature,
boolean prompt)
Convenience method to get a command to create a new relationship of kind
container . |
static org.eclipse.gmf.runtime.common.core.command.ICommand |
getDestroyElementCommand(org.eclipse.emf.ecore.EObject element)
Obtains a command that destroys the specified model element.
|
static org.eclipse.gmf.runtime.common.core.command.ICommand |
getDestroyElementCommand(org.eclipse.emf.ecore.EObject element,
java.util.Map parameters)
Obtains a command that destroys the specified model element.
|
static org.eclipse.gmf.runtime.common.core.command.ICommand |
getEditElementCommand(org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest request)
Obtains a command that edits an element, according to the details
specified by the given request.
|
static org.eclipse.gmf.runtime.common.core.command.ICommand |
getMoveElementCommand(org.eclipse.emf.ecore.EObject targetContainer,
org.eclipse.emf.ecore.EReference targetFeature,
org.eclipse.emf.ecore.EObject elementToMove)
Obtains a command to move a model element from one container into the
specified target feature of another.
|
static org.eclipse.gmf.runtime.common.core.command.ICommand |
getMoveElementCommand(org.eclipse.emf.ecore.EObject targetContainer,
org.eclipse.emf.ecore.EReference targetFeature,
org.eclipse.emf.ecore.EObject elementToMove,
java.util.Map parameters)
Obtains a command to move a model element from one container into the
specified target feature of another.
|
static org.eclipse.gmf.runtime.common.core.command.ICommand |
getMoveElementsCommand(org.eclipse.emf.ecore.EObject targetContainer,
org.eclipse.emf.ecore.EReference targetFeature,
java.util.List elementsToMove)
Obtains a command to move a collection of model elements into the
specified feature of a new container.
|
static org.eclipse.gmf.runtime.common.core.command.ICommand |
getMoveElementsCommand(org.eclipse.emf.ecore.EObject targetContainer,
org.eclipse.emf.ecore.EReference targetFeature,
java.util.List elementsToMove,
java.util.Map parameters)
Obtains a command to move a collection of model elements into the
specified feature of a new container.
|
static org.eclipse.gmf.runtime.common.core.command.ICommand |
getSetValueCommand(org.eclipse.emf.ecore.EObject element,
java.lang.Object newValue,
org.eclipse.emf.ecore.EReference feature,
java.util.Map requestParameters)
Convenience method to get a command to set the value of
feature in container . |
static boolean |
moveElement(org.eclipse.emf.ecore.EObject targetContainer,
org.eclipse.emf.ecore.EReference targetFeature,
org.eclipse.emf.ecore.EObject elementToMove,
org.eclipse.core.runtime.IProgressMonitor monitor)
A convenience method that obtains a command to move the specified
elementToMove and also executes it.
|
static boolean |
moveElement(org.eclipse.emf.ecore.EObject targetContainer,
org.eclipse.emf.ecore.EReference targetFeature,
org.eclipse.emf.ecore.EObject elementToMove,
java.util.Map parameters,
org.eclipse.core.runtime.IProgressMonitor monitor)
A convenience method that obtains a command to move the specified
elementToMove and also executes it.
|
static boolean |
moveElements(org.eclipse.emf.ecore.EObject targetContainer,
org.eclipse.emf.ecore.EReference targetFeature,
java.util.List elementsToMove,
org.eclipse.core.runtime.IProgressMonitor monitor)
A convenience method that obtains a command to move the specified
elementsToMove and also executes it.
|
static boolean |
moveElements(org.eclipse.emf.ecore.EObject targetContainer,
org.eclipse.emf.ecore.EReference targetFeature,
java.util.List elementsToMove,
java.util.Map parameters,
org.eclipse.core.runtime.IProgressMonitor monitor)
A convenience method that obtains a command to move the specified
elementsToMove and also executes it.
|
static boolean |
setAttributeValue(org.eclipse.emf.ecore.EObject element,
java.lang.Object newValue,
org.eclipse.emf.ecore.EAttribute attribute,
java.util.Map requestParameters,
org.eclipse.core.runtime.IProgressMonitor progressMonitor)
Convenience method to set the value of
attribute in
container . |
static boolean |
setValue(org.eclipse.emf.ecore.EObject element,
java.lang.Object newValue,
org.eclipse.emf.ecore.EReference feature,
java.util.Map requestParameters,
org.eclipse.core.runtime.IProgressMonitor progressMonitor)
Convenience method to set the value of
feature in
container . |
public static org.eclipse.emf.ecore.EObject createElement(org.eclipse.emf.ecore.EObject container, org.eclipse.gmf.runtime.emf.type.core.IElementType typeToCreate, org.eclipse.core.runtime.IProgressMonitor progressMonitor)
container
.container
- the container elementtypeToCreate
- the kind of element to createprogressMonitor
- the progress monitornull
if it wasn't
createdgetCreateElementCommand(EObject, IElementType)
public static org.eclipse.gmf.runtime.common.core.command.ICommand getCreateElementCommand(org.eclipse.emf.ecore.EObject container, org.eclipse.gmf.runtime.emf.type.core.IElementType typeToCreate)
container
.container
- the container elementtypeToCreate
- the kind of element to createcreateElement(EObject, IElementType, IProgressMonitor)
public static org.eclipse.gmf.runtime.common.core.command.ICommand getCreateElementCommand(org.eclipse.emf.ecore.EObject container, org.eclipse.gmf.runtime.emf.type.core.IElementType typeToCreate, org.eclipse.emf.ecore.EObject redefContextHint)
container
.container
- the container elementtypeToCreate
- the kind of element to createredefContextHint
- redefinition context hintcreateElement(EObject, IElementType, IProgressMonitor)
public static org.eclipse.emf.ecore.EObject createElement(org.eclipse.emf.ecore.EObject container, org.eclipse.gmf.runtime.emf.type.core.IElementType typeToCreate, org.eclipse.emf.ecore.EReference containmentFeature, org.eclipse.core.runtime.IProgressMonitor progressMonitor)
container
.container
- the container elementtypeToCreate
- the kind of element to createcontainmentFeature
- the feature to contain the new elementprogressMonitor
- the progress monitornull
if it wasn't
createdgetCreateElementCommand(EObject, IElementType, EReference)
public static org.eclipse.gmf.runtime.common.core.command.ICommand getCreateElementCommand(org.eclipse.emf.ecore.EObject container, org.eclipse.gmf.runtime.emf.type.core.IElementType typeToCreate, org.eclipse.emf.ecore.EReference containmentFeature)
container
.container
- the container elementtypeToCreate
- the kind of element to createcontainmentFeature
- the feature to contain the new elementcreateElement(EObject, IElementType, EReference, IProgressMonitor)
public static org.eclipse.emf.ecore.EObject createElement(org.eclipse.emf.ecore.EObject container, org.eclipse.gmf.runtime.emf.type.core.IElementType typeToCreate, java.util.Map requestParameters, org.eclipse.core.runtime.IProgressMonitor progressMonitor)
container
. Will use the default
containment feature.container
- the container elementtypeToCreate
- the kind of element to createrequestParameters
- parameters to be set in the creation request; keys can be
parameter names declared in
EditRequestParameters
progressMonitor
- the progress monitornull
if it wasn't
createdgetCreateElementCommand(EObject, IElementType, Map)
public static org.eclipse.gmf.runtime.common.core.command.ICommand getCreateElementCommand(org.eclipse.emf.ecore.EObject container, org.eclipse.gmf.runtime.emf.type.core.IElementType typeToCreate, java.util.Map requestParameters)
container
.
Will use the default containment feature.container
- the container elementtypeToCreate
- the kind of element to createrequestParameters
- parameters to be set in the creation request; keys can be
parameter names declared in
EditRequestParameters
createElement(EObject, IElementType, Map, IProgressMonitor)
public static org.eclipse.emf.ecore.EObject createElement(org.eclipse.emf.ecore.EObject container, org.eclipse.gmf.runtime.emf.type.core.IElementType typeToCreate, java.util.Map requestParameters, org.eclipse.emf.ecore.EReference containmentFeature, org.eclipse.core.runtime.IProgressMonitor progressMonitor)
container
.container
- the container elementtypeToCreate
- the kind of element to createrequestParameters
- parameters to be set in the creation request; keys can be
parameter names declared in
EditRequestParameters
containmentFeature
- the feature to contain the new elementprogressMonitor
- the progress monitornull
if it wasn't
createdgetCreateElementCommand(EObject, IElementType, Map, EReference)
public static org.eclipse.gmf.runtime.common.core.command.ICommand getCreateElementCommand(org.eclipse.emf.ecore.EObject container, org.eclipse.gmf.runtime.emf.type.core.IElementType typeToCreate, java.util.Map requestParameters, org.eclipse.emf.ecore.EReference containmentFeature)
container
.container
- the container elementtypeToCreate
- the kind of element to createrequestParameters
- parameters to be set in the creation request; keys can be
parameter names declared in
EditRequestParameters
containmentFeature
- the feature to contain the new elementcreateElement(EObject, IElementType, Map, EReference, IProgressMonitor)
public static org.eclipse.emf.ecore.EObject createRelationship(org.eclipse.emf.ecore.EObject container, org.eclipse.gmf.runtime.emf.type.core.IElementType typeToCreate, org.eclipse.emf.ecore.EObject source, org.eclipse.emf.ecore.EObject target, org.eclipse.core.runtime.IProgressMonitor progressMonitor)
container
.container
- the container elementtypeToCreate
- the kind of element to createsource
- the relationship sourcetarget
- the relationship targetprogressMonitor
- the progress monitornull
if it wasn't
createdgetCreateRelationshipCommand(EObject, IElementType, EObject, EObject)
public static org.eclipse.gmf.runtime.common.core.command.ICommand getCreateRelationshipCommand(org.eclipse.emf.ecore.EObject container, org.eclipse.gmf.runtime.emf.type.core.IElementType typeToCreate, org.eclipse.emf.ecore.EObject source, org.eclipse.emf.ecore.EObject target)
container
.container
- the container elementtypeToCreate
- the kind of element to createsource
- the relationship sourcetarget
- the relationship targetcreateRelationship(EObject, IElementType, EObject, EObject, IProgressMonitor)
public static org.eclipse.emf.ecore.EObject createRelationship(org.eclipse.emf.ecore.EObject container, org.eclipse.gmf.runtime.emf.type.core.IElementType typeToCreate, org.eclipse.emf.ecore.EObject source, org.eclipse.emf.ecore.EObject target, org.eclipse.emf.ecore.EReference containmentFeature, org.eclipse.core.runtime.IProgressMonitor progressMonitor)
container
.container
- the container elementtypeToCreate
- the kind of element to createsource
- the relationship sourcetarget
- the relationship targetcontainmentFeature
- the feature to contain the new elementprogressMonitor
- the progress monitornull
if it wasn't
createdgetCreateRelationshipCommand(EObject, IElementType, EObject, EObject, EReference)
public static org.eclipse.gmf.runtime.common.core.command.ICommand getCreateRelationshipCommand(org.eclipse.emf.ecore.EObject container, org.eclipse.gmf.runtime.emf.type.core.IElementType typeToCreate, org.eclipse.emf.ecore.EObject source, org.eclipse.emf.ecore.EObject target, org.eclipse.emf.ecore.EReference containmentFeature)
container
.container
- the container elementtypeToCreate
- the kind of element to createsource
- the relationship sourcetarget
- the relationship targetcontainmentFeature
- the feature to contain the new elementcreateRelationship(EObject, IElementType, EObject, EObject, EReference, IProgressMonitor)
public static org.eclipse.emf.ecore.EObject createRelationship(org.eclipse.emf.ecore.EObject container, org.eclipse.gmf.runtime.emf.type.core.IElementType typeToCreate, org.eclipse.emf.ecore.EObject source, org.eclipse.emf.ecore.EObject target, java.util.Map requestParameters, org.eclipse.core.runtime.IProgressMonitor progressMonitor)
container
. Uses the default containment
feature.container
- the container elementtypeToCreate
- the kind of element to createsource
- the relationship sourcetarget
- the relationship targetrequestParameters
- parameters to be set in the creation request; keys can be
parameter names declared in
EditRequestParameters
progressMonitor
- the progress monitornull
if it wasn't
createdgetCreateRelationshipCommand(EObject, IElementType, EObject, EObject, Map)
public static org.eclipse.gmf.runtime.common.core.command.ICommand getCreateRelationshipCommand(org.eclipse.emf.ecore.EObject container, org.eclipse.gmf.runtime.emf.type.core.IElementType typeToCreate, org.eclipse.emf.ecore.EObject source, org.eclipse.emf.ecore.EObject target, java.util.Map requestParameters)
container
.
Uses the default containment feature.container
- the container elementtypeToCreate
- the kind of element to createsource
- the relationship sourcetarget
- the relationship targetrequestParameters
- parameters to be set in the creation request; keys can be
parameter names declared in
EditRequestParameters
createRelationship(EObject, IElementType, EObject, EObject, Map, IProgressMonitor)
public static org.eclipse.emf.ecore.EObject createRelationship(org.eclipse.emf.ecore.EObject container, org.eclipse.gmf.runtime.emf.type.core.IElementType typeToCreate, org.eclipse.emf.ecore.EObject source, org.eclipse.emf.ecore.EObject target, java.util.Map requestParameters, org.eclipse.emf.ecore.EReference containmentFeature, org.eclipse.core.runtime.IProgressMonitor progressMonitor)
container
.container
- the container elementtypeToCreate
- the kind of element to createsource
- the relationship sourcetarget
- the relationship targetrequestParameters
- parameters to be set in the creation request; keys can be
parameter names declared in
EditRequestParameters
containmentFeature
- the feature to contain the new elementprogressMonitor
- the progress monitornull
if it wasn't
createdgetCreateRelationshipCommand(EObject, IElementType, EObject, EObject, Map, EReference)
public static org.eclipse.emf.ecore.EObject createRelationship(org.eclipse.emf.ecore.EObject container, org.eclipse.gmf.runtime.emf.type.core.IElementType typeToCreate, org.eclipse.emf.ecore.EObject source, org.eclipse.emf.ecore.EObject target, java.util.Map requestParameters, org.eclipse.emf.ecore.EReference containmentFeature, boolean prompt, org.eclipse.core.runtime.IProgressMonitor progressMonitor)
container
.container
- the container elementtypeToCreate
- the kind of element to createsource
- the relationship sourcetarget
- the relationship targetrequestParameters
- parameters to be set in the creation request; keys can be
parameter names declared in
EditRequestParameters
containmentFeature
- the feature to contain the new elementprompt
- prompt flagprogressMonitor
- the progress monitornull
if it wasn't
createdgetCreateRelationshipCommand(EObject, IElementType, EObject, EObject, Map, EReference, boolean)
public static org.eclipse.gmf.runtime.common.core.command.ICommand getCreateRelationshipCommand(org.eclipse.emf.ecore.EObject container, org.eclipse.gmf.runtime.emf.type.core.IElementType typeToCreate, org.eclipse.emf.ecore.EObject source, org.eclipse.emf.ecore.EObject target, java.util.Map requestParameters, org.eclipse.emf.ecore.EReference containmentFeature)
container
.container
- the container elementtypeToCreate
- the kind of element to createsource
- the relationship sourcetarget
- the relationship targetrequestParameters
- parameters to be set in the creation request; keys can be
parameter names declared in
EditRequestParameters
containmentFeature
- the feature to contain the new elementcreateRelationship(EObject, IElementType, EObject, EObject, Map, EReference, IProgressMonitor)
public static org.eclipse.gmf.runtime.common.core.command.ICommand getCreateRelationshipCommand(org.eclipse.emf.ecore.EObject container, org.eclipse.gmf.runtime.emf.type.core.IElementType typeToCreate, org.eclipse.emf.ecore.EObject source, org.eclipse.emf.ecore.EObject target, java.util.Map requestParameters, org.eclipse.emf.ecore.EReference containmentFeature, boolean prompt)
container
.container
- the container elementtypeToCreate
- the kind of element to createsource
- the relationship sourcetarget
- the relationship targetrequestParameters
- parameters to be set in the creation request; keys can be
parameter names declared in
EditRequestParameters
containmentFeature
- the feature to contain the new elementprompt
- prompt flagcreateRelationship(EObject, IElementType, EObject, EObject, Map, EReference, boolean, IProgressMonitor)
public static boolean setValue(org.eclipse.emf.ecore.EObject element, java.lang.Object newValue, org.eclipse.emf.ecore.EReference feature, java.util.Map requestParameters, org.eclipse.core.runtime.IProgressMonitor progressMonitor)
feature
in
container
.
Validates the files affected by the command and returns
false
if validation fails.
element
- the element whose value will be setnewValue
- the new valuefeature
- the feature to of the element whose value will be setrequestParameters
- parameters to be set in the set request; keys can be
parameter names declared in
EditRequestParameters
progressMonitor
- the progress monitortrue
if the value was set, false
otherwise.getSetValueCommand(EObject, Object, EReference, Map)
public static org.eclipse.gmf.runtime.common.core.command.ICommand getSetValueCommand(org.eclipse.emf.ecore.EObject element, java.lang.Object newValue, org.eclipse.emf.ecore.EReference feature, java.util.Map requestParameters)
feature
in container
.element
- the element whose value will be setnewValue
- the new valuefeature
- the feature to of the element whose value will be setrequestParameters
- parameters to be set in the set request; keys can be
parameter names declared in
EditRequestParameters
setValue(EObject, Object, EReference, Map, IProgressMonitor)
public static boolean setAttributeValue(org.eclipse.emf.ecore.EObject element, java.lang.Object newValue, org.eclipse.emf.ecore.EAttribute attribute, java.util.Map requestParameters, org.eclipse.core.runtime.IProgressMonitor progressMonitor)
attribute
in
container
.
Validates the files affected by the command and returns
false
if validation fails.
element
- the element whose value will be setnewValue
- the new valueattribute
- the attribute to of the element whose value will be setrequestParameters
- parameters to be set in the set request; keys can be
parameter names declared in
EditRequestParameters
progressMonitor
- the progress monitortrue
if the value was set, false
otherwise.getSetValueCommand(EObject, Object, EReference, Map)
public static org.eclipse.gmf.runtime.common.core.command.ICommand getMoveElementCommand(org.eclipse.emf.ecore.EObject targetContainer, org.eclipse.emf.ecore.EReference targetFeature, org.eclipse.emf.ecore.EObject elementToMove)
targetContainer
- the target containertargetFeature
- the target featureelementToMove
- the element to be movedmoveElement(EObject, EReference, EObject, IProgressMonitor)
public static org.eclipse.gmf.runtime.common.core.command.ICommand getMoveElementCommand(org.eclipse.emf.ecore.EObject targetContainer, org.eclipse.emf.ecore.EReference targetFeature, org.eclipse.emf.ecore.EObject elementToMove, java.util.Map parameters)
targetContainer
- the target containertargetFeature
- the target featureelementToMove
- the element to be movedparameters
- additional parameters for the command (may be null
); keys can be
parameter names declared in
EditRequestParameters
moveElement(EObject, EReference, EObject, Map, IProgressMonitor)
public static org.eclipse.gmf.runtime.common.core.command.ICommand getMoveElementsCommand(org.eclipse.emf.ecore.EObject targetContainer, org.eclipse.emf.ecore.EReference targetFeature, java.util.List elementsToMove)
targetContainer
- the target containertargetFeature
- the target featureelementsToMove
- the list of EObject
s to be moved.moveElements(EObject, EReference, List, IProgressMonitor)
public static org.eclipse.gmf.runtime.common.core.command.ICommand getMoveElementsCommand(org.eclipse.emf.ecore.EObject targetContainer, org.eclipse.emf.ecore.EReference targetFeature, java.util.List elementsToMove, java.util.Map parameters)
targetContainer
- the target containertargetFeature
- the target featureelementsToMove
- the list of EObject
s to be moved.parameters
- additional parameters for the command; keys can be
parameter names declared in
EditRequestParameters
moveElements(EObject, EReference, List, Map, IProgressMonitor)
public static boolean moveElement(org.eclipse.emf.ecore.EObject targetContainer, org.eclipse.emf.ecore.EReference targetFeature, org.eclipse.emf.ecore.EObject elementToMove, org.eclipse.core.runtime.IProgressMonitor monitor)
targetContainer
- the target containertargetFeature
- the target featureelementToMove
- the element to be movedmonitor
- a progress monitor to use in execution of the command.
Specify null
if progress monitoring is not requiredtrue
if the element was successfully moved;
false
if it could not be movedgetMoveElementCommand(EObject, EReference, EObject)
public static boolean moveElement(org.eclipse.emf.ecore.EObject targetContainer, org.eclipse.emf.ecore.EReference targetFeature, org.eclipse.emf.ecore.EObject elementToMove, java.util.Map parameters, org.eclipse.core.runtime.IProgressMonitor monitor)
targetContainer
- the target containertargetFeature
- the target featureelementToMove
- the element to be movedparameters
- additional parameters for the move command; keys can be
parameter names declared in
EditRequestParameters
monitor
- a progress monitor to use in execution of the command.
Specify null
if progress monitoring is not requiredtrue
if the element was successfully moved;
false
if it could not be movedgetMoveElementCommand(EObject, EReference, EObject, Map)
public static boolean moveElements(org.eclipse.emf.ecore.EObject targetContainer, org.eclipse.emf.ecore.EReference targetFeature, java.util.List elementsToMove, org.eclipse.core.runtime.IProgressMonitor monitor)
targetContainer
- the target containertargetFeature
- the target featureelementsToMove
- the list of EObject
s to be moved.monitor
- a progress monitor to use in execution of the command.
Specify null
if progress monitoring is not requiredtrue
if the elements were successfully moved;
false
if they could not be movedgetMoveElementsCommand(EObject, EReference, List)
public static boolean moveElements(org.eclipse.emf.ecore.EObject targetContainer, org.eclipse.emf.ecore.EReference targetFeature, java.util.List elementsToMove, java.util.Map parameters, org.eclipse.core.runtime.IProgressMonitor monitor)
targetContainer
- the target containertargetFeature
- the target featureelementsToMove
- the list of EObject
s to be moved.parameters
- additional parameters for the move command; keys can be
parameter names declared in
EditRequestParameters
monitor
- a progress monitor to use in execution of the command.
Specify null
if progress monitoring is not requiredtrue
if the elements were successfully moved;
false
if they could not be movedgetMoveElementsCommand(EObject, EReference, List)
public static org.eclipse.gmf.runtime.common.core.command.ICommand getDestroyElementCommand(org.eclipse.emf.ecore.EObject element)
element
- an element to be destroyeddestroyElement(EObject, IProgressMonitor)
public static org.eclipse.gmf.runtime.common.core.command.ICommand getDestroyElementCommand(org.eclipse.emf.ecore.EObject element, java.util.Map parameters)
element
- an element to be destroyedparameters
- additional parameters for the destroy command; keys can be
parameter names declared in
EditRequestParameters
destroyElement(EObject, Map, IProgressMonitor)
public static boolean destroyElement(org.eclipse.emf.ecore.EObject element, org.eclipse.core.runtime.IProgressMonitor monitor)
element
- an element to destroymonitor
- a progress monitor to use in execution of the command.
Specify null
if progress monitoring is not requiredtrue
if the element was successfully destroyed;
false
if it could not be destroyedgetDestroyElementCommand(EObject)
public static boolean destroyElement(org.eclipse.emf.ecore.EObject element, java.util.Map parameters, org.eclipse.core.runtime.IProgressMonitor monitor)
element
- an element to destroyparameters
- additional parameters for the destroy command; keys can be
parameter names declared in
EditRequestParameters
monitor
- a progress monitor to use in execution of the command.
Specify null
if progress monitoring is not requiredtrue
if the element was successfully destroyed;
false
if it could not be destroyedgetDestroyElementCommand(EObject, Map)
public static org.eclipse.gmf.runtime.common.core.command.ICommand getEditElementCommand(org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest request)
request
- the specification of the edit operation to perform