public class AddDiagramElement
extends java.lang.Object
Constructor and Description |
---|
AddDiagramElement() |
Modifier and Type | Method and Description |
---|---|
static org.eclipse.emf.common.command.Command |
addAllPortsCommand(org.eclipse.emf.transaction.TransactionalEditingDomain domain,
org.eclipse.uml2.uml.Component providerComp,
org.eclipse.uml2.uml.Component clientComp)
Adds all the ports contained in a Component providerComp to a Component clientComp
|
static org.eclipse.emf.common.command.Command |
addCommentCommand(org.eclipse.emf.transaction.TransactionalEditingDomain domain,
org.eclipse.uml2.uml.Comment comm)
Adds the specified Comment stereotyped with Assign to the assignList of the deployment view
|
static org.eclipse.emf.common.command.Command |
addOperationCommand(org.eclipse.emf.transaction.TransactionalEditingDomain domain,
org.eclipse.uml2.uml.Classifier interf,
org.eclipse.uml2.uml.Component comp)
Adds all the operations contained in a Classifier interf to a Component comp
|
static org.eclipse.emf.common.command.Command |
addOperationCommand1(org.eclipse.emf.transaction.TransactionalEditingDomain domain,
org.eclipse.uml2.uml.Interface interf,
org.eclipse.uml2.uml.Operation operation)
Copies an operation from an Interface to all the Component Type that realizes the Interface
and to all the ComponentImplementation that realizes the ComponentType(s)
|
static org.eclipse.emf.common.command.Command |
addParameterCommand(org.eclipse.uml2.uml.Interface opCont,
org.eclipse.uml2.uml.Parameter param,
org.eclipse.uml2.uml.Operation operation,
org.eclipse.emf.transaction.TransactionalEditingDomain domain)
Copies the specified parameter added to an operation of an interface to the
corresponding operation in the Components that realize the interface
|
static org.eclipse.emf.common.command.Command |
addPortCommand(org.eclipse.emf.transaction.TransactionalEditingDomain domain,
org.eclipse.uml2.uml.Component providerComp,
org.eclipse.uml2.uml.Component clientComp,
org.eclipse.uml2.uml.Port supplierPort)
Adds the specified supplierPort contained in a Component providerComp to a Component clientComp
|
static org.eclipse.emf.common.command.Command |
createDependencies(org.eclipse.emf.transaction.TransactionalEditingDomain domain,
org.eclipse.uml2.uml.Component comp,
org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.ClientServerPort port)
Creates an interface realization from a Component to the Interface provided by its Port
|
static org.eclipse.emf.common.command.Command |
destroyDependencies(org.eclipse.emf.transaction.TransactionalEditingDomain domain,
org.eclipse.emf.common.util.EList<? extends org.eclipse.uml2.uml.Dependency> deps)
Removes dependencies from the model
|
static org.eclipse.emf.common.command.Command |
removeCommentCommand(org.eclipse.emf.transaction.TransactionalEditingDomain domain,
org.eclipse.uml2.uml.Comment comm)
Removes the specified Comment stereotyped with Assign to the assignList of the deployment view
|
static org.eclipse.emf.common.command.Command |
removeImplementationsPorts(org.eclipse.emf.transaction.TransactionalEditingDomain domain,
org.eclipse.uml2.uml.Port supplierPort)
Removes the specified port of the ComponentImplementations
|
static org.eclipse.emf.common.command.Command |
updateImplementationsFlowPorts(org.eclipse.emf.transaction.TransactionalEditingDomain domain,
org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.FlowPort flPort)
Updates the ports, stereotyped as <
|
static org.eclipse.emf.common.command.Command |
updateImplementationsPorts(org.eclipse.emf.transaction.TransactionalEditingDomain domain,
org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.ClientServerPort cspSupplied)
Updates the ports, stereotyped as <
|
public static org.eclipse.emf.common.command.Command createDependencies(org.eclipse.emf.transaction.TransactionalEditingDomain domain, org.eclipse.uml2.uml.Component comp, org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.ClientServerPort port)
domain
- the TransactionalEditingDomain of the modelcomp
- the Component owner of the portport
- the ClientServerPort providing and Interfacepublic static org.eclipse.emf.common.command.Command destroyDependencies(org.eclipse.emf.transaction.TransactionalEditingDomain domain, org.eclipse.emf.common.util.EList<? extends org.eclipse.uml2.uml.Dependency> deps)
domain
- the TransactionalEditingDomain of the modeldeps
- the dependencies to be removedpublic static org.eclipse.emf.common.command.Command addOperationCommand(org.eclipse.emf.transaction.TransactionalEditingDomain domain, org.eclipse.uml2.uml.Classifier interf, org.eclipse.uml2.uml.Component comp)
domain
- the TransactionalEditingDomain of the modelinterf
- the Classifier containing the operationscomp
- the Component where the operation will be copiedpublic static org.eclipse.emf.common.command.Command addAllPortsCommand(org.eclipse.emf.transaction.TransactionalEditingDomain domain, org.eclipse.uml2.uml.Component providerComp, org.eclipse.uml2.uml.Component clientComp)
domain
- the TransactionalEditingDomain of the modelproviderComp
- the Component containing the portsclientComp
- the Component where the ports will be copiedpublic static org.eclipse.emf.common.command.Command addPortCommand(org.eclipse.emf.transaction.TransactionalEditingDomain domain, org.eclipse.uml2.uml.Component providerComp, org.eclipse.uml2.uml.Component clientComp, org.eclipse.uml2.uml.Port supplierPort)
domain
- the TransactionalEditingDomain of the modelproviderComp
- the Component containing the portclientComp
- the Component where the port will be copiedsupplierPort
- the supplier portpublic static org.eclipse.emf.common.command.Command addOperationCommand1(org.eclipse.emf.transaction.TransactionalEditingDomain domain, org.eclipse.uml2.uml.Interface interf, org.eclipse.uml2.uml.Operation operation)
domain
- the TransactionalEditingDomain of the modelinterf
- the Interface containing the operationoperation
- the Operation to be copiedpublic static org.eclipse.emf.common.command.Command addCommentCommand(org.eclipse.emf.transaction.TransactionalEditingDomain domain, org.eclipse.uml2.uml.Comment comm)
domain
- the TransactionalEditingDomain of the modelcomm
- the Comment stereotyped as <public static org.eclipse.emf.common.command.Command removeCommentCommand(org.eclipse.emf.transaction.TransactionalEditingDomain domain, org.eclipse.uml2.uml.Comment comm)
domain
- the TransactionalEditingDomain of the modelcomm
- the Comment stereotyped as <public static org.eclipse.emf.common.command.Command addParameterCommand(org.eclipse.uml2.uml.Interface opCont, org.eclipse.uml2.uml.Parameter param, org.eclipse.uml2.uml.Operation operation, org.eclipse.emf.transaction.TransactionalEditingDomain domain)
opCont
- the Interface containing the operationparam
- the Parameter to be copiedoperation
- the Operation containing the parameterTransactionalEditingDomain
- of the modelpublic static org.eclipse.emf.common.command.Command updateImplementationsPorts(org.eclipse.emf.transaction.TransactionalEditingDomain domain, org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.ClientServerPort cspSupplied)
domain
- the TransactionalEditingDomain of the modelcspSupplied
- the Port stereotyped as <addAllPortsCommand
public static org.eclipse.emf.common.command.Command updateImplementationsFlowPorts(org.eclipse.emf.transaction.TransactionalEditingDomain domain, org.eclipse.papyrus.MARTE.MARTE_DesignModel.GCM.FlowPort flPort)
domain
- the TransactionalEditingDomain of the modelflPort
- the Port stereotyped as <addAllPortsCommand
public static org.eclipse.emf.common.command.Command removeImplementationsPorts(org.eclipse.emf.transaction.TransactionalEditingDomain domain, org.eclipse.uml2.uml.Port supplierPort)
domain
- the TransactionalEditingDomain of the modelsupplierPort
- the Port to be removed